Skip to main content
100%

let's make a face part I & II

✓ Published0🌍 Public
WWilliam Engelen
Last edited Aug 15, 2022
Created on Aug 15, 2022
Forked from HTML Starter

This example shows a simple cartoon face built from SVG shapes, with a yellow circular background, two black eyes, and a curved mouth arc. The face is centered within a 960×500 viewport, demonstrating how React components can render D3-generated paths. The code uses React’s `ReactDOM.render` to mount the SVG, and the mouth is created with D3’s `arc` generator, which specifies inner and outer radii and angular extents. Stroke width, eye offsets, and radii are defined as constants, making the face’s proportions easy to adjust.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes