🌍 Public
Viewing a saved revision (read-only)
c4e1ccb4a6864102bd197cd9791df4f5
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.