Skip to main content
100%

Fork of Let's Make a Face

✓ Published0🌍 Public
SSunny
Last edited Aug 9, 2022
Created on Aug 9, 2022

This example renders a yellow smiley face that fills the browser window using React and SVG. The face is built from three circles: a large yellow head with a black stroke, and two smaller black circles for eyes positioned symmetrically around the center. The code uses `window.innerWidth` and `window.innerHeight` to make the visualization responsive, and computes the head’s radius from the viewport height. React components define the SVG elements, with JSX attributes matching SVG properties like `stroke-width`.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes