Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Smiley face part 1

Public visualization

Smiley face part 1

0 stars1🌍 Public
BBoris Gomaz
Last edited Feb 15, 2023
Created on Feb 14, 2023
Forked from HTML Starter

This example shows a grid of randomly generated smiley faces, each with varied eye positions, sizes, stroke widths, and mouth dimensions. It renders 18 distinct faces using React components such as `Face`, `BackgroundCircle`, `Eyes`, and `Mouth`, with each face drawn as an SVG group centered via a `transform`. The code leverages d3’s `arc` generator to create the mouth path and `range` to produce the array of faces, with ReactDOM rendering the output to the page.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed