Sol LeWitt reproduction
✓ Published3🌍 Public
This example reproduces a Sol LeWitt-inspired drawing using only native browser APIs, with no external libraries. It creates a vertical striped pattern by generating a series of SVG `<rect>` elements, each 20 pixels wide, spaced evenly across the full viewport width and height. The code computes the number of rectangles needed based on `window.innerWidth` and a fixed padding of twice the bar length, then appends them to the document body using the SVG namespace (`http://www.w3.org/2000/svg`). The result is a minimalist, monochromatic composition that fills the entire screen, adapting automatically to any window size.
AI-generated descriptionExample of a picture create for le author Sol LeWitt
MIT Licensed