Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of HTML Starter

Public visualization

Viewing a saved revision (read-only)

66e5ab8101a04ba781d7be7f5cf53a62

Fork of HTML Starter

0 stars0🌍 Public
Ee-ines
Last edited Apr 1, 2021
Created on Mar 31, 2021
Forked from HTML Starter

This example renders a grid of 18 cartoon faces using React components, each with randomized facial features such as eye offset, eye radius, mouth radius, and stroke width. The faces are composed of SVG circles and a D3 arc path for the mouth, assembled via reusable components like `FaceContainer`, `BackgroundCircle`, `Eyes`, and `Mouth`. D3’s `arc` API generates the mouth shape, while `range` from D3 creates the array of faces. The SVG output is positioned using a centered `<g>` transform, with all styling handled through inline SVG attributes.

AI-generated description

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

See also React Starter.