Skip to main content
100%

Lets Make a Face

✓ Published0🌍 Public
BbeauMarko
Last edited Jan 25, 2021
Created on Jan 25, 2021

A grid of randomly generated cartoon faces demonstrates how React components and D3 shape generators can be composed into reusable visualizations. Each face uses a yellow background circle, offset black eyes, and a D3 arc-based mouth with randomized dimensions for eye radius, mouth width, and mouth radius. The React `Face` component assembles smaller `BackgroundCircle`, `Eyes`, and `Mouth` subcomponents, while a `FaceContainer` renders an SVG group translated to the center coordinates. D3’s `range` and `arc` utilities generate the grid and mouth paths, respectively.

AI-generated description
MIT Licensed

Similar vizzes