Skip to main content
100%

Smiley Face Part 1

✓ Published0🌍 Public
CCedric Mendoza
Last edited Oct 13, 2021
Created on Oct 2, 2021
Forked from HTML Starter

A yellow smiley face is drawn as three SVG circles: a large yellow face with a black outline, and two smaller black eyes positioned symmetrically. The face is centered in a 960 by 500 pixel viewport, with the eyes offset from the center. Built with React 17 and D3 v7, the visualization uses JSX to render SVG circle elements, computing positions with constant variables for eye offset and radius. The face radius is derived from the viewport height, ensuring the circle fits within the SVG canvas.

AI-generated description

Half way towards a smiley face

MIT Licensed

Similar vizzes