🌍 Public
Viewing a saved revision (read-only)
07e10f6b63504375aba059fd70a2997a
Sol LeWitt 2
This example reproduces a Sol LeWitt art piece using raw SVG elements created with the Document Object Model (DOM) API. It generates one hundred vertical rectangles, each ten pixels wide and spaced twenty pixels apart, filling the full height of the browser window. The code uses `document.createElementNS` to construct SVG `<rect>` elements and appends them to an SVG container. The rectangles are drawn programmatically in a loop, without any external data source or visualization library.
AI-generated descriptionA demonstration of SVG shapes.