Skip to main content
100%

Simley Face Part I

✓ Published3🌍 Public
DDaniel Zsido
Last edited Nov 17, 2021
Created on Nov 13, 2021
Forked from HTML Starter

This example shows a smiling face built from a yellow background circle, two black eyes, and a curved mouth, rendered as SVG in a React component hierarchy. The face is centered on an 960×500 canvas using a `FaceContainer` that translates an SVG group to the midpoint. Individual components like `BackgroundCircle`, `Eyes`, and `Mouth` accept geometric props for positions and sizes. The mouth’s arc is generated with the `d3.arc` API, specifying inner/outer radii and start/end angles. All shapes are drawn with SVG primitives inside a React tree, using hard-coded dimensions.

AI-generated description

Half way towards a simley face.

MIT Licensed

Similar vizzes