Skip to main content
100%

Fork of Let's Make a Face Part I

✓ Published0🌍 Public
IIsh Takkar
Last edited Jun 19, 2021
Created on Jun 17, 2021

This example renders a yellow smiley face with two eyes and a curved mouth, centered on an SVG canvas. It is built with React (v17) and D3 (v7), using D3’s `arc` generator to define the mouth path. The face is composed of three separate React components—`BackgroundCircle`, `Eyes`, and `Mouth`—all nested inside a shared `FaceContainer` that applies a translation transform. The SVG width is 960 pixels, height 500 pixels, and the final output is drawn entirely as vector shapes.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes