Skip to main content
100%

Smiley Face Part 1

✓ Published0🌍 Public
JJordan Trémoureux
Last edited Jul 6, 2022
Created on Feb 22, 2021
Forked from HTML Starter

This example generates a grid of eighteen randomized smiley faces, each with a yellow circular background, black stroke, two eyes, and a curved mouth. The faces are rendered as SVG elements using React components and D3’s `arc` generator for the mouth path, with random values for stroke width, eye position, and mouth dimensions. All faces are positioned at the center of a 160-by-160-pixel SVG, produced by mapping over a D3 `range` array.

AI-generated description

Using markdown

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

See also React Starter.

MIT Licensed

Similar vizzes