Skip to main content
100%

Sol LeWitt

✓ Published1🌍 Public
Bbillzhou2005
Last edited Jan 5, 2023
Created on Jan 4, 2023
Forked from SVG fundamentals

This example renders a generative SVG artwork inspired by Sol LeWitt. It uses raw JavaScript to create an SVG element sized to the browser window, then draws 100 vertical rectangles, each 10 pixels wide and spaced 20 pixels apart, spanning the full height of the canvas. A circular mask, defined in SVG and applied via the `mask` attribute, clips these rectangles, revealing a bold, striped disk centered on the screen. The piece demonstrates programmatic shape creation and SVG masking without any external libraries.

AI-generated description

A demostration for SVG shapes

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes