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
VVamshisoleti09
Last edited Feb 21, 2023
Created on Feb 22, 2023

This example builds a stylized face from reusable React components, layering a gradient background circle, ellipses for eyes, and a mouth arc into an SVG canvas. The face is centered using a FaceContainer that applies a translation, while D3’s `arc()` generator defines the mouth and tooth shapes. Teeth are rendered as white arcs with black dividing lines, and a linearGradient fills the background. The code uses d3.v7 and React 18, with all coordinates and dimensions passed as props to control facial feature placement.

AI-generated description

Half way towards a smiley face.

Comments

Sign in to join the discussion.

MIT Licensed