Fork of Fork of Tweak a Face Assignment by Enze Liu
✓ Published0🌍 Public
A panda face built from basic SVG shapes—circles, arcs, and paths—is rendered inside a React component. The face uses red and pink circles for the head and cheeks, black arcs for the eyes and ears, and a half-circle arc for the nose, with a curved mouth made from two symmetric arcs. The code defines each shape using D3’s `arc()` API, then applies rotate and translate transforms to position features symmetrically. All elements are drawn in an SVG coordinate system fixed at 960 by 500 pixels, with no interactive behavior.
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