Skip to main content
100%

Fork of Smiley Face Part VI

✓ Published0🌍 Public
JJulienJacquot
Last edited Jan 29, 2022
Created on Jan 29, 2022

A grid of eighteen randomly generated smiley faces, each with unique eye positions, radii, stroke widths, and mouth dimensions, fills the viewport. The example demonstrates composing SVG visualizations from React components and D3 shape generators. Each face is built from a yellow background circle, two dark eyes, and a mouth path created using D3's `arc` generator. The `range` function from D3 generates the array of faces, while React's component model handles the reusable `Face`, `Eyes`, `Mouth`, and `BackgroundCircle` elements, rendered into a single SVG container per face.

AI-generated description

Smiley face implementation with React & D3, taking full advantage of React components and ES6 modules.

MIT Licensed

Similar vizzes