Skip to main content
100%

Sol LeWitt Reproduction with JS

✓ Published1🌍 Public
MMofizur Rahman
Last edited Jan 7, 2024
Created on Jan 6, 2024

This example reproduces a Sol LeWitt geometric art piece using only native browser APIs. It displays a grid of horizontal and vertical rectangles intersecting around a central circular void, created with SVG masks. The code uses `document.createElementNS` to build SVG elements and applies two masks: a white circle on black for the horizontal bars and an inverted circle for the vertical bars. The 60 rectangles in each direction are generated programmatically with fixed 20-pixel spacing.

AI-generated description

A reproduction of a Sol LeWitt art piece.

MIT Licensed

Similar vizzes