mask test
✓ Published0🌍 Public
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 descriptionMIT Licensed