Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Let's Make a Face Part I

Public visualization

Fork of Fork of Let's Make a Face Part I

0 stars0🌍 Public
Rradhadevarapu
Last edited Feb 22, 2023
Created on Feb 22, 2023

This example shows a stylized cartoon face built from separate React components for the background circle, eyes, mouth, and teeth. The face is centered on an SVG canvas with a gradient fill, using d3.arc to create the curved mouth and teeth shapes. The code uses React 18 and d3.v7 to compose reusable components like FaceContainer, BackgroundCircle, Eyes, Mouth, and Teeth, passing props for dimensions and offsets. The teeth include straight vertical lines to suggest individual teeth within the arc.

AI-generated description

Half way towards a smiley face.

Comments

Sign in to join the discussion.

MIT Licensed