Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Shapes and Colors with SVG and CSS

Public visualization

Fork of Shapes and Colors with SVG and CSS

0 stars0🌍 Public
Ddanh-luong
Last edited Sep 28, 2023
Created on Sep 28, 2023

This example demonstrates basic geometric shapes—circles, rectangles, lines, and a path—grouped and transformed with SVG, each styled either inline or via CSS. A first group shows shapes without fills, a second adds explicit red and green fills, and a third inherits a pale fill with a black stroke. CSS classes control stroke styling for the line and path. The code uses raw SVG elements within an HTML document, relying on CSS properties like fill, stroke, stroke-width, and stroke-linejoin. Shapes are scaled and translated using SVG transform attributes.

AI-generated description

An example including some commonly used features of SVG.

Comments

Sign in to join the discussion.

MIT Licensed