Skip to main content
100%

Smiley Face Part II

✓ Published0🌍 Public
MMaxene Graze
Last edited Aug 3, 2020
Created on Aug 2, 2020
Forked from Hello HTML

This example shows a yellow smiley face composed of a background circle, two eyes, and a curved mouth, all rendered as SVG elements within a React component. The face is centered in a 960×500 viewport using a `FaceContainer` that translates a group to the middle. Components receive their geometry as props: the `BackgroundCircle` sets radius and stroke width, `Eyes` place circles using offset and radius values, and `Mouth` uses the d3 `arc` generator to create a smile path with specified inner/outer radii and angle bounds. The app renders via ReactDOM with D3 v5, demonstrating reusable, parameterized SVG parts.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes