Skip to main content
100%

Smiley Face Part 1

✓ Published0🌍 Public
CChad Loh
Last edited Aug 6, 2022
Created on Aug 5, 2022
Forked from HTML Starter

This example shows a simple smiley face constructed from hand-coded SVG shapes rendered dynamically through React.js. The yellow face is a circle, with two black eyes and a curved mouth drawn using D3’s arc generator. The code directly specifies all geometry—center coordinates, radii, offsets, and stroke width—rather than using any external data. D3 v7 and React 16.7 are loaded via CDN, with the React component outputting the SVG elements into a div. The visual demonstrates basic shape composition and coordinate math within a static, non-interactive scene.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes