Skip to main content
100%

Sol Lewitt in SVG

✓ Published0🌍 Public
KKirsten Lund
Last edited Mar 20, 2021
Created on Mar 20, 2021
Forked from SVG Fundamentals

The example generates a minimalist geometric composition inspired by Sol Lewitt, using a series of uniformly spaced vertical silver rectangles that stretch the full height of the browser window. It shows a systematic grid of 100 thin bars created entirely with dynamic SVG elements. The code builds the visualization by appending SVG `rect` nodes to the document, setting each bar’s x-coordinate incrementally at intervals of 20 pixels with a fixed width of 10. It relies on the raw Document Object Model API, including `document.createElementNS` and `setAttribute`, to construct the scene in plain JavaScript without external libraries.

AI-generated description

A demonstration of SVG shapes.

MIT Licensed

Similar vizzes