Skip to main content
100%

Smiley Face Part 1

✓ Published2🌍 Public
Mmauricio-acosta-reyes
Last edited Apr 17, 2021
Created on Apr 16, 2021
Forked from HTML Starter

This example shows a grid of 270 small, randomly varied smiley faces generated as React components. Each face uses a yellow background circle, two black eyes, and a mouth drawn as a d3 arc path, with dimensions like eye offset, eye radius, and mouth radius varying per instance. The code combines React elements with d3 v6’s `arc()` generator to create the mouth shape, and renders everything as SVG within a container that translates to the face’s center point. The layout is static, produced from a d3 `range` array with no interactivity.

AI-generated description

Smiley Face part 1. Learning to use HTML and React

MIT Licensed

Similar vizzes