Skip to main content
100%

Fork of Smiley Face Part II

✓ Published0🌍 Public
Ppaulinemnguyen
Last edited Aug 16, 2022
Created on Aug 16, 2022

This example shows a yellow smiley face rendered as a scalable vector graphic, with two eyes and a curved mouth positioned symmetrically around the center of the viewport. Built with React and D3 v7, the visualization uses the `d3.arc()` API to generate the mouth’s path, while circles are drawn directly as SVG elements. The graphic fills the entire browser window, with dimensions and positions computed from `window.innerWidth` and `window.innerHeight`. The face is centered via a group transformation, and the code is structured as a React component that mounts into the DOM using `ReactDOM.render`.

AI-generated description

Smiley face implementation with React.

MIT Licensed

Similar vizzes