Skip to main content
100%

Fork of Sol Lewitt Reproduction with d3

✓ Published1🌍 Public
VVincent Leduc
Last edited Aug 10, 2023
Created on Aug 10, 2023

This example reproduces a Sol LeWitt wall drawing using D3 v7, generating a grid of horizontal and vertical stripes overlaid with a circular mask. The SVG rendering shows a black-and-white composition where two perpendicular striped layers intersect, with a central circle revealing horizontal bands while the outer area displays both orientations. The code uses `d3.select`, `d3.range`, and `join` to create rectangles, and applies SVG `<mask>` elements with circles to control which stripes appear in each region, with the circle radius derived from a fixed pixel step.

AI-generated description

Sol Lewitt art piece.

MIT Licensed

Similar vizzes