Skip to main content
100%

Fork of Let's Make a Face Part I

✓ Published0🌍 Public
Aatqlong
Last edited Jan 15, 2022
Created on Jan 15, 2022

This example shows a simple smiley face built with React and D3, rendered as SVG. It draws a yellow circle with a black stroke, two eyes, and a curved mouth using the `d3.arc()` generator. The face is centered via a `<g>` transform, with eye and mouth positions computed from offset constants. The code uses React 16.9 for DOM rendering and D3 v5 for the arc path calculation, with all shapes drawn declaratively as SVG elements.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes