Skip to main content
100%

Fork of Let's Make a Face Part I

✓ Published0🌍 Public
YYodae Lim
Last edited Aug 15, 2023
Created on Aug 14, 2023

A React-based face built from composable SVG components renders a yellow circle with two black eyes and a smiling mouth. The face’s geometry is parameterized through props like `eyeOffsetX` and `mouthRadius`, while the mouth uses `d3.arc` to generate a curved path. The `FaceContainer` wraps the SVG and applies a centering transform, and the final scene is mounted with `ReactDOM.render`. The code imports specific React components, including `BackgroundCircle`, `Eyes`, and `Mouth`, and uses D3 v7 for arc generation.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes