Skip to main content
100%

mask test

✓ Published0🌍 Public
SSergio
Last edited Aug 18, 2025
Created on Aug 18, 2025

A generative art piece reproduces a Sol LeWitt-style composition using an SVG mask. The page creates a circular mask centered on the screen, filled with a black circle over a white rectangle. One hundred horizontal stripes, each 10 pixels tall, are drawn across the full viewport width and clipped by this mask, revealing the pattern only within the circle. The code uses native `document.createElementNS` to construct SVG elements, setting the `mask` attribute on each rectangle and a `circle-mask` definition.

AI-generated description
MIT Licensed

Similar vizzes