Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Let's Make a Face Part I

Public visualization

Fork of Let's Make a Face Part I

0 stars0🌍 Public
NNayeer Bin Mahiuddin
Last edited Oct 17, 2021
Created on Oct 17, 2021

This example shows a simplified smiley face drawn with SVG shapes: a yellow circle for the head, two black circles for eyes, and a curved mouth path. The mouth is created using the `d3.arc()` generator with inner and outer radii and start/end angles. The code uses React for component structure and rendering, while D3 v7 provides the arc calculation. The face is centered within a 960×500 viewport, with fixed positions for facial features based on defined offsets and dimensions.

AI-generated description

Half way towards a smiley face.

Comments

Sign in to join the discussion.

MIT Licensed