Skip to main content
100%

Fork of Tweak a Face Assignment by Enze Liu

✓ Published0🌍 Public
VVamshisoleti09
Last edited Feb 22, 2023
Created on Feb 22, 2023

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 description

The first assignment: Tweak a Face

Start with the blank html project This is a panda face!

  1. use two arcs to make the eyes
  2. use two ellipse to make the eye sockets
  3. use one arc to make the nose
  4. use two circles to implement the flush
  5. use two arcs to implement the mouse
  6. use two arcs to implement the ears
MIT Licensed

Similar vizzes