Skip to main content
100%

Smiley Face

✓ Published1🌍 Public
JJoe Hutchins
Last edited Feb 23, 2022
Created on Feb 14, 2022
Forked from Hello HTML

Two identical smiling faces render side by side in a React app, each constructed from modular SVG components for the background circle, eyes, pupils, mouth, and tongue. The code leverages D3’s `arc()` generator to shape the mouth and passes numeric props like eye offsets and radii to scale facial features. Both faces use the same hardcoded dimensions and coordinates, producing a mirrored, duplicated output. The SVG is centered within a 900-by-500 viewport, with each face fully drawn using primitive circles and paths.

AI-generated description

Third eye smiley face built with D3 and React Components

MIT Licensed

Similar vizzes