Skip to main content
100%

Reproduction of Sol LeWitt 2

✓ Published0🌍 Public
PPhan Nguyen
Last edited Mar 3, 2023
Created on Mar 3, 2023

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes