Skip to main content
100%

Sol LeWitt Vanilla JavaScript

✓ Published0🌍 Public
Ppeter@attachmentdivision.com
Last edited Jan 5, 2023
Created on Jan 5, 2023

This example reproduces a Sol LeWitt wall drawing using only Vanilla JavaScript and the SVG API. It constructs an SVG scene with a white rectangle and a black circle defined as a mask, then renders 100 horizontal stripes as individual SVG `<rect>` elements. Each rectangle’s visibility is filtered through the circular mask, creating the artwork’s characteristic banded composition within a circular boundary. The code dynamically sets the canvas to the browser’s full window dimensions and uses no external libraries or data sources.

AI-generated description

A reproduction of a Sol LeWitt art piece.

MIT Licensed

Similar vizzes