🌍 Public
Viewing a saved revision (read-only)
3f5c87c0988a4e9b9ca2cacc7759a73d
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 reproduction of a Sol LeWitt art piece.