Skip to main content
100%

Shapes with svg and CSS

✓ Published0🌍 Public
Aaudreyfr
Last edited Nov 24, 2019
Created on Nov 23, 2019
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes