Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

SVG Fundamentals

Public visualization

SVG Fundamentals

0 stars0🌍 Public
Ssharkeypatrick
Last edited Mar 7, 2021
Created on Mar 7, 2021
Forked from HTML Starter

This example demonstrates a basic SVG scene composed of three primitive shapes: a circle, a rectangle, and a line, all placed on a 1000 by 1000 canvas. The shapes show how different SVG attributes control appearance, such as `fill`, `stroke`, `stroke-width`, and geometric properties like `cx`, `cy`, `r`, `x`, `y`, `width`, and `height`. The explicit `stroke="red"` on the `<svg>` element sets a default that is overridden by individual shapes, like the rectangle's blue stroke. The example uses plain SVG markup within an HTML file, with no JavaScript or external libraries.

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