Skip to main content
100%

Sol LeWitt Reproduction

✓ Published1🌍 Public
PPareel Amre
Last edited Nov 20, 2023
Created on Nov 20, 2023
Forked from HTML Starter

This example reproduces a Sol LeWitt wall drawing using dynamically generated SVG elements. It shows a grid of horizontal and vertical stripes, masked to reveal a central circular area where only horizontal lines appear, surrounded by vertical lines. The code uses raw Document Object Model (DOM) methods such as `document.createElementNS` and `setAttribute` to construct the SVG, with two mask definitions (`circle-mask` and `circle-mask-2`) controlling visibility. No external libraries are used; the rendering relies purely on SVG rectangles and masks in the browser.

AI-generated description

A reproduction of a Sol LeWitt art piece

MIT Licensed

Similar vizzes