🌍 Public
Viewing a saved revision (read-only)
4098acf7e73e423a9c1cbc2afabac48f
Fork of Learn to draw smile with d3
A yellow SVG smiley face is drawn with D3 v5, featuring two eyes, animated eyebrows, and an arc-based mouth. The code uses `d3.select`, `d3.arc`, and SVG elements like `circle`, `rect`, and `path` within a centered group. Eyebrows transition vertically via `transition().duration()`, while the face is rendered on a 960×500 canvas with black strokes. All shapes are generated programmatically without external data, demonstrating basic SVG drawing and animation with D3's selection and transition APIs.
AI-generated descriptionAn example including some commonly used features of SVG.