Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

5 | Smiley Face

Public visualization

5 | Smiley Face

0 stars0🌍 Public
BBibek Lekhak
Last edited Oct 28, 2021
Created on Oct 28, 2021
Forked from Hello HTML

A yellow smiley face made of SVG circles and an arc is drawn at the center of a 960 by 500 canvas. Two black circles form the eyes, while the mouth is generated with the d3.arc() API, using inner and outer radii and start and end angles. The example is built with React rendering SVG elements, and it imports the arc function directly from d3.v7. All shapes are positioned using a group transform at the canvas center, with stroke and fill attributes set as SVG properties.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed