🌍 Public
Viewing a saved revision (read-only)
b06d929936484aac85b856bca7113c9e
Let's make a face
This example uses SVG shapes to draw a simple smiley face. The code constructs a yellow circle for the head, two black circles for the eyes, and a mouth created with an arc path, all positioned relative to the SVG’s width and height. It demonstrates basic SVG attributes and the `d3.arc` generator from D3 v6 to define the mouth’s curved shape, with static styling applied via CSS.
AI-generated descriptionAn example including some commonly used features of SVG.