Full Sol LeWitt Reproduction with D3
✓ Published4🌍 Public
This example reproduces a Sol LeWitt art piece using D3.js to generate a grid of intersecting horizontal and vertical lines across the full browser window. The rendering uses SVG rectangles, with each line composed of multiple thin rect elements spaced at regular intervals. Two SVG masks, created with D3’s `symbol` and `symbols[1]` (a circle), selectively reveal or hide parts of the grid: one mask is inverted to show lines only within the circle, while the other hides them inside it. The code relies on `d3.select`, `range`, and `join` to build the elements dynamically.
AI-generated descriptionA reproduction of a Sol LeWitt art piece.
MIT Licensed