Skip to main content
100%

Fork of Fork of Tweak a Face Assignment by Enze Liu

✓ Published0🌍 Public
Ggunasindhuja
Last edited Feb 25, 2023
Created on Feb 25, 2023
Forked from Hello VizHub

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 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