Skip to main content
100%

Fork of Fork of Smiley Face Part 2

✓ Published2🌍 Public
DDaljeetSingh1320
Last edited Jul 31, 2023
Created on Jul 27, 2023
Forked from HTML Starter

This example shows a yellow smiley face built from SVG shapes, with two black eyes and an upward-curving mouth drawn as an arc. The face is centered in a 960×500 viewport, using a circle for the head, smaller circles for the eyes, and a `d3.arc` path for the mouth. The code combines React 18 for rendering with D3 v7’s `arc` API, computing radius and offsets relative to the center, and applies a stroke to the outer circle. All elements are grouped and translated to the center for positioning.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes