Skip to main content
100%

Make a Face part VI

✓ Published0🌍 Public
Llaurence beattie
Last edited Sep 13, 2021
Created on Sep 13, 2021
Forked from Smiley transforms

This example displays a grid of 18 randomly generated cartoon faces, each composed of a yellow circular background with black stroke, two eyes, and a mouth. The faces are rendered as SVG elements defined by React components (`Face`, `Eyes`, `Mouth`, `BackgroundCircle`), where the `Mouth` uses `d3.arc` to generate a half-ring path. Each face’s dimensions—stroke width, eye offset, eye radius, mouth radius, and mouth width—are randomized between faces via `Math.random` within `index.js`, creating a playful ensemble of unique smiles. The rendering is handled by React’s `ReactDom.render`, producing a static composition of layered SVG primitives.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes