Skip to main content
100%

Smiley Face 1,2,3

✓ Published0🌍 Public
FFarahnaz Wick
Last edited Feb 22, 2022
Created on Feb 17, 2022
Forked from HTML Starter

This visualization shows a simple, stylized smiley face rendered as a yellow circle with black stroke, two eyes, and a curved mouth. Built with React and D3 v5, it uses the `d3.arc()` API to generate the mouth path based on inner and outer radii and start/end angles. The face components—background, eyes, and mouth—are composed from separate React function components, with the overall layout handled by a `FaceContainer` that centers elements via an SVG `<g>` transform. The face is drawn entirely with SVG, using fixed pixel dimensions for a 960-by-500 canvas.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes