Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Sol LeWitt Vanilla JavaScript

Public visualization

Sol LeWitt Vanilla JavaScript

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed