Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 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.

MIT Licensed

Similar vizzes