Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

SVG Fundamentals

Public visualization

Viewing a saved revision (read-only)

f7aa313411da41338fa9401a4f7e94a5

SVG Fundamentals

0 stars0🌍 Public
MmeniYud
Last edited Dec 31, 2022
Created on Dec 31, 2022
Forked from HTML Starter

This example demonstrates fundamental SVG shapes—circles, rectangles, lines, and paths—rendered directly on a 500 by 500 canvas. It shows how vector graphics are composed using explicit coordinate attributes like `cx`, `cy`, `r`, `x`, `y`, `width`, `height`, and `d` for path data. The code uses no external libraries; instead, it relies on native SVG elements styled with inline attributes such as `fill`, `stroke`, and `stroke-width`. Overlapping blue rectangles illustrate layering and coordinate positioning, while a red circle, a navy diagonal line, and a black triangle path showcase primitive geometric construction.

AI-generated description

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

See also React Starter.