🌍 Public
Viewing a saved revision (read-only)
f60a3d69c9e74029bd7a7a6aff0c041a
sol lewitt reproduction
This example reproduces a Sol LeWitt-style minimalist composition using dynamically generated SVG rectangles. The code creates 100 vertical black bars, each 10 pixels wide, spaced 20 pixels apart across the full height of the browser window, filling the viewport edge-to-edge with a rhythmic grid. It uses the raw DOM API `document.createElementNS` to construct SVG elements, setting width, height, and position attributes directly on each `<rect>`. The rendering approach mirrors LeWitt’s conceptual art by deriving form from a simple algorithmic rule: a loop variable determines each bar’s x-coordinate and index.
AI-generated descriptionA reproduction of [Sol Lewitt art piece].