Skip to main content
100%

Fork of My Smiley Face

✓ Published0🌍 Public
MMarina Shemesh
Last edited Mar 5, 2021
Created on Mar 5, 2021
Forked from My Smiley Face

This example shows a simplified yellow smiley face constructed from SVG shapes, centered on a 960×500 canvas. The face includes a large yellow circle for the head, two small circles for eyes, two red cheek circles, and a wide arc for the mouth, all rendered as separate SVG elements. Built with React and D3 v6, the code uses D3’s `arc()` generator to create the mouth path, while the head, eyes, and cheeks are plain SVG circles. The `index.js` file defines dimensions and offsets as constants, and renders the composition via ReactDOM, placing everything inside a single `<g>` transform.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes