Skip to main content
Public

Share visualization

Loading preview…

Fork of Smiley Face Part II

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Smiley Face Part II

1
Aawarczak
Last edited Nov 2, 2023
Created on Nov 2, 2023

This example renders a large yellow smiley face that fills the browser window, with two circular eyes and a mouth, all drawn as SVG elements. The face is centered on the screen and scales its radius based on the viewport height, leaving a black stroke around the outer circle. The code uses React (via ReactDOM.render) to define the SVG structure and dynamic dimensions, reading window.innerWidth and window.innerHeight to set the coordinate system. Static variables control the eye offset, eye radius, and stroke width, but no mouth is implemented, and the page includes an embedded YouTube video in its README.

AI-generated description

Smiley face implementation with React.

Comments

Sign in to join the discussion.

MIT Licensed