Skip to main content
100%

Fork of Sol LeWitt Reproduction

✓ Published0🌍 Public
RRob Wainwright
Last edited Mar 29, 2024
Created on Mar 29, 2024

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 description

A reproduction of a Sol LeWitt art piece.

MIT Licensed

Similar vizzes