Skip to main content
100%

Fork of HTML Starter

✓ Published0🌍 Public
Ttestingwithaws
Last edited Aug 12, 2022
Created on Jul 29, 2022
Forked from HTML Starter

This example renders a static smiley face using React and D3.js. It shows a yellow circle with black outline, two eyes, and a mouth arc, all positioned relative to a central origin point. The code constructs the SVG via React DOM elements and uses the D3 arc generator to create the mouth path with specified inner and outer radii and angular range. The drawing is centered on a 960 by 500 canvas, with eye placement defined by offset values and the face radius derived from the canvas height and stroke width.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes