Skip to main content
100%

Smiley Face Part 1

✓ Published0🌍 Public
BBrent Brewington
Last edited Dec 24, 2021
Created on Dec 24, 2021
Forked from Hello HTML

This example renders a yellow smiley face in SVG using React, with a dark outline, two circular eyes, and an arc-based mouth. The face is centered by translating a group element to the middle of a 960×500 viewport. D3’s `arc` generator defines the mouth’s inner and outer radii and angular range, while React components compose the background circle and eyes. The background circle’s radius is set to the canvas half-height minus half the stroke width, positioning everything within the visible area.

AI-generated description

Half way towards a smiley face

MIT Licensed

Similar vizzes