Skip to main content
100%

Shapes with SCG and CSS

✓ Published0🌍 Public
Jjeffko18
Last edited Oct 19, 2019
Created on Oct 19, 2019
Forked from HTML Cars Report

This example demonstrates basic SVG shapes—circles, rectangles, lines, and paths—styled through both inline attributes and CSS. It shows how SVG elements inherit styling from parent `<g>` groups and how CSS classes can apply strokes and fill colors. The code uses the SVG API directly with elements like `<circle>`, `<rect>`, `<line>`, and `<path>`, rendered in a 960x500 viewport. The CSS file defines stroke properties for the lines group, while inline attributes handle fills and specific stroke widths.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes