Fork of Tweak a Face Assignment by Enze Liu
✓ Published0🌍 Public
This interactive SVG renders a stylized panda face built with React and D3 v6. Geometric primitives define the face: white circles form the head, red circles create blush, ellipses shape the eye sockets, and arcs generate the eyes, nose, mouth, and ears. The code uses `d3.arc()` to compute path data for each curved component, with transformations like rotation and translation positioning features around the canvas center. The composition demonstrates how combining basic shapes with D3’s arc generator can construct a recognizable character within a 960x500 viewport.
AI-generated descriptionThe first assignment: Tweak a Face
Start with the blank html project This is a panda face!
- use two arcs to make the eyes
- use two ellipse to make the eye sockets
- use one arc to make the nose
- use two circles to implement the flush
- use two arcs to implement the mouse
- use two arcs to implement the ears
MIT Licensed