Skip to main content
100%

Let's Make a Face Part II

✓ Published1🌍 Public
PPolina Sysoeva
Last edited Jan 22, 2022
Created on Jan 22, 2022

A smiley face rendered as two black eyes on a yellow circular head, built with React 16.9 and SVG. The component defines fixed dimensions for the canvas, calculates the face’s center, and uses offset constants for eye positions, with stroke width and radius as explicit variables. It renders three circles: a yellow outer circle with a black stroke, and two smaller black eyes placed symmetrically around the center. The code uses ReactDOM to mount the component into a root element, with styling that hides page overflow.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes