Skip to main content
100%

Smiley Face Part 1

✓ Published0🌍 Public
IIsaac Yuen
Last edited Apr 28, 2022
Created on Apr 27, 2022
Forked from HTML Starter

A grid of eighteen smiley faces renders in React with D3 v7, each face varying randomly in stroke width, eye size and position, and mouth dimensions. The example shows how SVG shapes compose into a reusable `Face` component using D3's `arc` generator to draw each mouth. The `FaceContainer` translates a central group, while `BackgroundCircle`, `Eyes`, and `Mouth` define the facial features. Random parameters from the `d3.range` map generate the unique faces.

AI-generated description

Halfway towards a smiley face

MIT Licensed

Similar vizzes