Skip to main content
100%

Fork of Let's Make a Face Part I

✓ Published0🌍 Public
CChirag Bansal
Last edited May 30, 2021
Created on May 30, 2021

This example builds a simple smiley face using React and SVG, rendering a yellow circle with two black eyes. The face is drawn with three `<circle>` elements, where the head and eye positions are calculated from fixed width, height, and offset variables. The code uses ReactDOM to mount the component, and computes the head radius from the height minus a stroke width. It demonstrates basic SVG styling with fill, stroke, and positioning in a 960x500 viewport.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes