Skip to main content
100%

Sol LeWitt Platt - circle mask

✓ Published0🌍 Public
NNatalia BM
Last edited Jan 18, 2026
Created on Jan 18, 2026

This example creates a minimal Sol LeWitt-inspired drawing using raw SVG and JavaScript, rendering 100 horizontal stripe rectangles of 10-pixel height across the full viewport. A circular mask, defined via the SVG `<mask>` element with a white circle, clips the stripes into a central circular region at the screen’s midpoint. The code dynamically generates the SVG namespace elements (`document.createElementNS`) for the mask, circle, and rectangles, mimicking a generative art process with no external libraries. The result is a stark black-and-white composition that isolates the line pattern within the circle, referencing LeWitt’s geometric wall drawings.

AI-generated description
MIT Licensed

Similar vizzes