Skip to main content
100%

Fork of Shapes and Colors with SVG and CSS

✓ Published0🌍 Public
Ggabcee
Last edited Jun 1, 2022
Created on Jun 1, 2022

This example shows a simple smiling face built from SVG shapes: a yellow circle for the head, two black circles for eyes, and a black arc for the mouth. The code uses D3 v7 selections and the `arc` generator from `d3-shape` to draw the mouth path, while CSS sets the page margin and hides overflow. All shapes are positioned relative to a centered `g` group, with explicit attributes for radius, spacing, and angles.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes