🌍 Public
Viewing a saved revision (read-only)
4adfbb31b9e54a3896c0a34f4958960e
let's make a face part I & II
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.