Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Smiley Face Part II

Public visualization

Viewing a saved revision (read-only)

de6d57419da548648fd3bd0c85a2c707

Fork of Smiley Face Part II

0 stars0🌍 Public
MMaddie Black
Last edited May 14, 2021
Created on May 14, 2021

A smiley face built from basic SVG shapes centers itself in the browser viewport, with a yellow head, black outline, and two solid eyes, all inside a React component. Below the eyes, a mouth is drawn as an arcusing D3's `arc` generator, which computes a path between configured inner and outer radii and angles. The entire face is rendered as SVG, with dimensions and positions derived from `window.innerWidth` and `window.innerHeight`, and the code uses ReactDOM to mount the component into a `div#root`.

AI-generated description

Half way towards a smiley face.