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
GGAItingw
Last edited Apr 26, 2021
Created on Apr 26, 2021

This example shows a smiling face constructed from scalable vector graphics, with the size and position adapting to the browser window. The face features a yellow circle with a black stroke for the head, two black eyes, a smaller nostril in the center, and a thick arc-shaped mouth. The code uses React to manage the SVG elements and the `arc()` function from `d3` to generate the mouth path. All shape dimensions, including eye offsets, radii, and stroke width, are derived from the window dimensions, making the drawing responsive.

AI-generated description

Smiley face implementation with React.

Comments

Sign in to join the discussion.

MIT Licensed