Skip to main content
100%

Sol LeWitt Reproduction with D3

✓ Published0🌍 Public
CCheah Peng Huat
Last edited Jul 9, 2024
Created on Jul 9, 2024

A reproduction of a Sol LeWitt wall drawing renders an abstract geometric composition using D3 and raw SVG. The piece shows a circular region at the canvas center, filled with alternating horizontal and vertical black-and-white stripes that crisp boundary. The code builds SVG elements directly, using a circle mask with two nested masks to divide the stripe layers: horizontal rects clipped by one circle mask, and vertical rects clipped by another inverted mask. It uses no D3-specific APIs, relying on native `document.createElementNS` and `setAttribute` to generate 100 rect stripes per direction.

AI-generated description

A reproduction of a [Sol Lewitt art piece]

MIT Licensed

Similar vizzes