Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes and Colors with SVG and CSS

Public visualization

Shapes and Colors with SVG and CSS

0 stars3🌍 Public
Aadlankj
Last edited Mar 2, 2020
Created on Mar 2, 2020

This example shows how SVG shapes and CSS styles combine to create a simple static graphic. It displays circles, rectangles, lines, and a path, with colors and strokes applied directly as attributes or through stylesheet rules. The code uses SVG elements like `circle`, `rect`, `line`, and `path`, with transform groups and scales. CSS controls the stroke color, width, line join, and cap for the path group. Rendering is done entirely in SVG, with a 960x500 viewport and a scale transform applied to the entire content. No data source is present; the visual is purely illustrative.

AI-generated description

An example including some commonly used features of SVG.

Comments

Sign in to join the discussion.

MIT Licensed