Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
Rrobertogonzalez.ar@gmail.com
Last edited Aug 12, 2024
Created on Aug 7, 2024
Forked from HTML Starter

This example demonstrates fundamental SVG rendering primitives within a static 960 by 500 viewport, using raw SVG elements without any JavaScript libraries. The code draws a series of circles and rectangles with explicit fill colors, including red, green, blue, and yellow shapes, plus a navy-stroked rectangle and a diagonal line. A separate composition in the lower right uses overlapping blue, black, and unfilled circles to form a simple figure. All shapes are defined declaratively with SVG attributes such as `cx`, `cy`, `r`, `x`, `y`, `width`, `height`, `fill`, and `stroke`, showing basic vector graphic construction directly in HTML.

AI-generated description

A demostration of SVG shapes.

MIT Licensed

Similar vizzes