Fork of Sol LeWitt Reproduction
✓ Published0🌍 Public
This example reproduces a Sol LeWitt art piece by drawing two intersecting sets of striped rectangles over a full-screen SVG. One set of horizontal bands and one set of vertical bands are clipped using two polygon masks, creating a triangular intersection where horizontal lines appear inside one mask and vertical lines appear inside the other. The code builds the SVG dynamically via the DOM API, creating 100 rectangles in each direction and applying masks defined with `<polygon>` elements. It uses no external libraries, relying purely on native SVG elements and JavaScript.
AI-generated descriptionA reproduction of a Sol LeWitt art piece.
MIT Licensed