Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Lets make a face pt1

Public visualization

Lets make a face pt1

0 stars0🌍 Public
SSteven McGrath
Last edited Oct 6, 2021
Created on Oct 6, 2021
Forked from HTML Starter

A grid of eighteen randomly generated smiley faces is rendered in SVG, each with unique colors, eye offsets, eye radii, mouth widths and radii, and stroke widths. Built with React and D3 v7, the app uses reusable components like `SmileFace`, `Eye`, `Mouth`, and `BackgroundCircle`, with D3’s `arc` generating the mouth path. A custom `getRandomColor` function creates random hex background colors, while D3’s `range` drives the grid layout. Each face is centered in its own SVG container, with random properties passed as props to create visual variety.

AI-generated description

Halfway towards a smiley face!

Comments

Sign in to join the discussion.

MIT Licensed