Skip to main content
100%

Fork of Tweak a Face Assignment by Enze Liu

✓ Published0🌍 Public
Rrohithannadurai@my.unt.edu
Last edited Feb 28, 2024
Created on Feb 28, 2024

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