Skip to main content
100%

5.-Happy face (React and D3 3)

✓ Published1🌍 Public
JJorge MataH
Last edited Oct 11, 2021
Created on Oct 9, 2021

This example shows a grid of 18 randomly generated happy faces rendered as SVGs using React and D3 v7. Each face, composed of a yellow background circle, two eyes, and an arc-based mouth, is created with custom React components like FaceContainer, BackgroundCircle, Eyes, and Mouth. The D3 arc generator constructs the smile path from random mouth radius and width values. The React app maps over a d3.range array to produce multiple faces with randomized eye offsets, positions, and sizes.

AI-generated description

Let's Make a Face III.

MIT Licensed

Similar vizzes