Skip to main content
100%

Smiley Face

✓ Published2🌍 Public
FFrederick O'Brien
Last edited Nov 1, 2021
Created on Oct 26, 2021
Forked from Hello HTML

This example shows a grid of smiley faces, each rendered as a yellow circle with black outlines, eyes, and a curved mouth. The faces are generated using React components, with each face composed of separate `BackgroundCircle`, `Eyes`, and `Mouth` parts. D3’s `arc` function creates the mouth shape, while `range` from D3 drives the generation of 18 distinct faces, each with randomized eye and mouth dimensions. The SVG output is centered within a fixed-width container, and the code relies on React’s declarative component structure to assemble each face.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes