Skip to main content
100%

Smilly face part I

✓ Published0🌍 Public
LLei Lei
Last edited Jan 16, 2022
Created on Jan 16, 2022

This example shows a single yellow circle centered on a full-screen SVG canvas, outlined in black. The circle’s radius is set to half the window height minus half the stroke width, ensuring it fits exactly within the viewport. The code uses a React component rendered via `ReactDOM.render`, with D3.js loaded but not yet used for drawing. The SVG is generated dynamically based on `window.innerWidth` and `window.innerHeight`. A commented-out block hints at a future smiley face with eyes, but only the head circle is displayed.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes