Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Let's Make a Face

Public visualization

Viewing a saved revision (read-only)

b124140e29264ac588fbedcf62d724b3

Fork of Let's Make a Face

0 stars0🌍 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.