Skip to main content
100%

SVG Fundamentals Ex 1

✓ Published0🌍 Public
AAndresrvaz
Last edited Dec 7, 2022
Created on Dec 7, 2022
Forked from HTML Starter

This example shows a circular target pattern built from alternating red and white rings, with a black crosshair overlaid at the center. The code creates the rings using SVG `circle` elements with varying radii, and draws the crosshair using four `line` elements. The `svg` canvas is 500 by 500 units, with all shapes centered at coordinates (250, 250). The visualization relies on basic SVG attributes like `cx`, `cy`, `r`, and `stroke` to define position, size, and appearance, demonstrating foundational SVG shape construction without additional libraries.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes