🌍 Public
Viewing a saved revision (read-only)
329217033a5d4d35a9106bd70b47d44b
Shapes with svg and CSS
This example demonstrates how to draw basic SVG shapes—circles, rectangles, lines, and a polyline path—and style them using both inline attributes and external CSS classes. The code uses the SVG API directly within an HTML file, applying transforms like `scale` and `translate` to position and group elements. A CSS rule with `.lines path` sets stroke color and rounded line joins, while inline attributes control fills and stroke widths for individual shapes. The visualization serves as a simple catalog of geometric primitives and styling techniques.
AI-generated descriptionAn example showing the capabilities of VizHub.