Skip to main content
100%

Sol LeWitt Reproduction

✓ Published1🌍 Public
JJacky Wu
Last edited Feb 27, 2025
Created on Feb 27, 2025
Forked from SVG Fundamentals

This example reproduces a minimalist Sol LeWitt-style geometric composition using dynamically generated SVG shapes. As the page loads, the code creates a full-viewport SVG canvas and populates it with a repeating grid of narrow vertical rectangles, producing a uniform striped pattern reminiscent of LeWitt’s wall drawings. The implementation builds the entire scene through the raw SVG DOM API, calling `document.createElementNS` and `setAttribute` to position each rectangle. The stripes are drawn with fixed 20-pixel spacing and a 10-pixel width, which means the pattern’s density scales with the browser window’s width as the viewport resizes. No external libraries are used; the underlying JavaScript directly manipulates the SVG elements without a helper framework.

AI-generated description

A reproduction of a Sol LeWitt art piece

MIT Licensed

Similar vizzes