Skip to main content
100%

Fork of Hello HTML

✓ Published0🌍 Public
CChestnut Sea
Last edited Feb 24, 2023
Created on Feb 23, 2023
Forked from Hello HTML

This example renders a simple, full-window yellow smiley face using an SVG drawing built with React and D3, positioned at the center of the viewport. It shows a large yellow circle with a black outline, two black eye circles, and a D3-generated arc path for the mouth, created with `d3.arc()`. The drawing uses D3's arc generator to define the mouth’s inner and outer radii and its angular span, while React composes the SVG elements. The dimensions and positions are all computed from the window’s current width and height, making the face scale to fit the browser.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes