Skip to main content
100%

Smiley

✓ Published0🌍 Public
CChrisGaul
Last edited Sep 28, 2021
Created on Sep 28, 2021
Forked from HTML Starter

This example generates a grid of 18 procedurally varied smiley faces, each rendered as a yellow circle with black outlines, eyes, and an arc-shaped mouth. The composition demonstrates how React components (Face, BackgroundCircle, Eyes, Mouth) and SVG elements can be parameterized with random values for stroke width, eye offset, eye radius, and mouth dimensions. The mouth is drawn using a D3 arc generator (d3.arc) to create a closed path, while the overall layout is managed by React, with all faces rendered in SVG within a single viewport.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes