Skip to main content
100%

(2) Episode 3: Sol LeWitt in Vanilla JS

✓ Published1🌍 Public
GGautam Doshi
Last edited Jul 19, 2024
Created on Jul 18, 2024

This visualization reproduces a Sol LeWitt art piece by rendering a series of vertical black bars across the browser window. It displays 100 rectangles, each 10 pixels wide, evenly spaced at 20-pixel intervals, creating a rhythmic, grid-like pattern that fills the entire viewport. The piece uses raw JavaScript and the SVG API, creating elements with `document.createElementNS` and appending them to the document. The code dynamically determines the canvas size using `window.innerWidth` and `window.innerHeight`, ensuring the artwork adapts to the screen dimensions.

AI-generated description

A reporoduction of a Sol LeWitt art piece

MIT Licensed

Similar vizzes