Skip to main content
Public

Share visualization

Loading preview…

Fork of Let's Make a Face

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 Let's Make a Face

0
SSunny
Last edited Aug 9, 2022
Created on Aug 9, 2022

This example renders a yellow smiley face that fills the browser window using React and SVG. The face is built from three circles: a large yellow head with a black stroke, and two smaller black circles for eyes positioned symmetrically around the center. The code uses `window.innerWidth` and `window.innerHeight` to make the visualization responsive, and computes the head’s radius from the viewport height. React components define the SVG elements, with JSX attributes matching SVG properties like `stroke-width`.

AI-generated description

Half way towards a smiley face.

Comments

Sign in to join the discussion.

MIT Licensed