Skip to main content
100%

Fork of Tweak a Face Assignment by Enze Liu

✓ Published0🌍 Public
MMar-99
Last edited Feb 20, 2022
Created on Feb 20, 2022

This example creates a panda face using D3's arc generator and React. It shows the face constructed from geometric primitives: two arcs for eyes, two ellipses for eye sockets, an arc for the nose, two circles for blush, two arcs for the mouth, and two arcs for ears. The SVG renders on a white background with a black stroke. The code uses `d3.arc` for all arc-based shapes and React DOM to render the SVG elements. The face is centered using translation transforms, with a custom color for the face.

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