Skip to main content
100%

Sol LeWitt

✓ Published1🌍 Public
EEd Smale
Last edited Jul 16, 2023
Created on Jul 16, 2023
Forked from SVG Fundamentals

This example generates a vertical field of narrow, evenly spaced black rectangles across the full height of the browser window, creating a rhythmic, striped composition reminiscent of Sol LeWitt’s wall drawings. It renders 100 SVG `<rect>` elements directly onto an `<svg>` created with the DOM API `document.createElementNS`. The rectangles are positioned incrementally along the x-axis at 20-pixel intervals, each with a fixed width of 10 pixels, while the height is set to match the window’s inner height. No external libraries are used; the visualization relies solely on native SVG parsing and JavaScript.

AI-generated description

A demo of SVG shapes.

MIT Licensed

Similar vizzes