Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

2020 Tutorial - Face

Public visualization

2020 Tutorial - Face

0 stars0🌍 Public
Hhenryspradlin
Last edited Jul 8, 2021
Created on Jul 2, 2021
Forked from D3 Face

A grid of eighteen identical cartoon faces fills the viewport, each rendered as a yellow circle with black stroke, two eyes, and a mouth shaped like a half-annulus. The example demonstrates how to build reusable SVG components in React, composing `BackgroundCircle`, `Eyes`, `Mouth`, and `FaceContainer` into a `Face` component. It uses D3's `arc` generator to define the mouth path and `range` to produce the array of faces. Each face is drawn with fixed parameters for eye offset, radius, and stroke width.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed