Skip to main content
100%

Making of a SVG

✓ Published0🌍 Public
DDhvanil Vaghasiya
Last edited Dec 22, 2022
Created on Dec 21, 2022
Forked from HTML Starter

This example generates a grid of eighteen cartoon faces, each rendered as a collection of SVG shapes including a yellow background circle, black eyes, and a smile. The faces are composed using React components like `Face`, `BgCircle`, `Eyes`, and `MouthArc`, with the latter leveraging the `d3.arc()` API to draw the mouth path. Randomized eye radius, mouth width, and mouth radius give each face a distinct expression. The `FaceContainer` wraps the SVG elements, translating the coordinate system to center each face within its designated width and height.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes