Skip to main content
100%

Fork of Shapes and Colors with SVG and CSS

✓ Published0🌍 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.

MIT Licensed

Similar vizzes