Reproduction of Sol LeWitt 2
✓ Published0🌍 Public
This example reproduces a geometric composition inspired by Sol LeWitt, displaying a triangle outlined by alternating horizontal and vertical stripes. The visualization renders two perpendicular sets of thin rectangular bars—one laid horizontally, the other vertically—whose visibility is selectively controlled by SVG masks. A white triangle on a black mask exposes the horizontal bars, while an inverted mask exposes the vertical bars, creating the illusion of a single striped triangle over a plain background. The code uses raw SVG elements and mask operations via the Document Object Model, with no external libraries.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed