Skip to main content
100%

Fork of Tweak a Face Assignment by Enze Liu

✓ Published0🌍 Public
Kkalyanikotha
Last edited Feb 19, 2022
Created on Feb 19, 2022

This example shows a panda face built from D3 shape primitives inside a React component, with an SVG canvas as the rendering target. The code uses `d3.arc()` for the eyes, nose, mouth, and ears, along with circles and ellipses for the face, cheeks, and eye sockets, all positioned via SVG transforms. It relies on React 16 and D3 v6, with hardcoded coordinate values defining the symmetric facial layout. The panda faces the viewer directly, combining geometric shapes to create a stylized, static illustration.

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