Skip to main content
100%

2nd Fork of Let's Make a Face Part I

✓ Published0🌍 Public
Yyushen
Last edited Apr 23, 2021
Created on Apr 21, 2021

The example renders a grid of procedurally generated abstract faces, each composed of a pink circle with black stroke, two offset eyes, and a mouth drawn as a d3 arc path. React components (`BackgroundCircle`, `Eye`, `Mouth`, `Face`) compose the SVG elements, while `d3.range` generates 18 face instances with randomized properties like stroke width, eye position, and mouth radius. The code uses d3.v6’s `arc` API for the mouth shape and React’s `ReactDOM.render` for mounting.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes