Skip to main content
100%

SVG Fundamentals

✓ Published1🌍 Public
Yyl.wang
Last edited May 8, 2022
Created on May 8, 2022
Forked from HTML Starter

This example demonstrates the use of SVG fundamentals by rendering basic geometric shapes—including circles, rectangles, lines, and paths—on a 960 by 500 pixel canvas. The code uses explicit SVG elements within an HTML page, setting attributes like `fill`, `stroke`, and `stroke-width` to control appearance. It shows how to position shapes using `cx`, `cy`, `x`, `y`, and `d` (for paths) directly in the markup. The visualization serves as a bare-minimum introduction to vector graphics without relying on external libraries.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes