Skip to main content
100%

let's make a face

✓ Published0🌍 Public
Ppengming0807
Last edited Jan 7, 2022
Created on Oct 14, 2021

This example draws a simple cartoon face using SVG primitives styled with D3 v7. It shows a yellow circle head with two eyes, purple elliptical eye sockets, and a red arc-based mouth. The code uses D3 selections and the `d3.arc` shape generator to construct the mouth path, while positioning elements via explicit `x` and `y` attributes on a 1000×500 SVG canvas.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes