Skip to main content
100%

SMILY FACES

✓ Published0🌍 Public
MMorgan
Last edited Oct 9, 2024
Created on Oct 7, 2024
Forked from Hello HTML

A grid of 300 randomized smiley faces renders in React with SVG, each face built from a yellow background circle, two eyes, and an arc-based mouth. The code composes reusable components—`BackgroundCircle`, `Eyes`, `Mouth`, and `FaceContainer`—using D3’s `arc` generator to define the mouth path. Every face varies slightly in stroke width, eye offset, eye radius, and mouth dimensions via `Math.random()`, producing a playful, procedurally generated pattern inspired by a tutorial halfway through building a smiley face.

AI-generated description

A bare minimum HTML page.

<iframe width="560" height="315" src="https://www.youtube.com/embed/QT5ef8dUyoo" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> Half-Way through a smiley face
MIT Licensed

Similar vizzes