Skip to main content
100%

Smiley Face Part I

✓ Published2🌍 Public
RRMartins11
Last edited May 3, 2021
Created on May 3, 2021
Forked from Hello HTML

A yellow, wire-framed smiley face rendered in SVG demonstrates reusable React components for composing static figures. The face uses `BackgroundCircle` for the head, `Eyes` for the pupils, and `Mouth`, which applies a d3 `arc` path generator with fixed start and end angles to draw an open-mouth shape. A `FaceContainer` wraps the SVG group, centering all elements via a translation transform. The example runs with React 17 and D3 v6, and the component props (including eye offset, radii, and stroke width) are set dynamically in the main app.

AI-generated description

Halfway towards a smiley face

MIT Licensed

Similar vizzes