Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Smiley Face Part II

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed