Skip to main content
100%

Fork of funn face

✓ Published0🌍 Public
Kkarnisrikanth2212
Last edited Feb 24, 2023
Created on Feb 24, 2023
Forked from funn face

This example builds a stylized, cartoon-like face with d3.js and React, rendered as SVG. It shows a gradient-filled circular background, ellipses for eyes, and a mouth created with d3's `arc` generator, while d3's `arc` also produces a teeth path. The face is assembled from modular React components—`BackgroundCircle`, `Eyes`, `Mouth`, and `Teeth`—within a `FaceContainer` that defines the SVG coordinate system. All geometric properties are passed as props, and the teeth include hard-coded line elements to suggest a grin.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes