Skip to main content
Public

Share visualization

Loading preview…

Fork of Shapes and Colors with SVG and CSS

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Shapes and Colors with SVG and CSS

1
GGuan
Last edited Sep 13, 2024
Created on Sep 13, 2024

This example visualizes basic geometric shapes, including circles, rectangles, lines, and a path, using SVG elements within a 960-by-500 canvas. It demonstrates how styling and transforms are applied via CSS classes and inline attributes, such as grouping elements with the `translate` and `scale` transforms, and using fill and stroke properties for coloring and outlines. The `styles.css` file defines a `.lines` class that sets stroke color and width, while SVG’s native `circle`, `rect`, `line`, and `path` elements structure the composition. The rendering approach is purely vector-based, with no external data source.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed