Skip to main content
100%

Fork of Shapes and Colors with SVG and CSS

✓ Published0🌍 Public
Xxychen0612.cs09@nycu.edu.tw
Last edited Sep 18, 2023
Created on Sep 18, 2023

This example shows basic SVG shapes—circles, rectangles, lines, and paths—styled with CSS classes and inline attributes. It combines default black fill, explicit colors like red and green, and a grouped set with a light blue fill and black stroke. The rendering uses raw SVG elements within an HTML page, with CSS controlling stroke properties such as width, line join, and cap. The `<g>` elements apply transformations including scaling and translation, while the `.lines` class defines stroke behavior for line and path elements.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes