Fork of Tweak a Face Assignment by Enze Liu
✓ Published0🌍 Public
This example shows a stylized panda face built from basic geometric shapes, with eyes, ears, a nose, and a mouth composed of arcs and ellipses. The rendering uses React for component structure and D3’s `arc` generator to define curved paths, while SVG elements like `circle`, `ellipse`, and `path` are placed within a single `<g>` group. The face is centered in a 960×500 viewport, with a white circle as the head and black strokes outlining each feature. Transformations rotate and translate the arcs to position the ears and mouth symmetrically, demonstrating a declarative approach to constructing a static illustration with mixed D3 and React.
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