Exercise Sol LeWitt Reproduction with D3
This example reproduces a Sol LeWitt art piece using D3.js, generating a grid of overlaid horizontal and vertical rectangles that are masked to create a geometric, abstract composition. The visualization uses `d3.select`, `d3.range`, and `d3.symbols` to create SVG elements, with `d3.symbol` generating custom shapes within masks. The code dynamically assigns x and y positions to the rectangles, alternating between horizontal and vertical orientations, and applies inverted and non-inverted masks to achieve the layered visual effect. The result is a generative, screen-filling artwork that mimics the minimal, rule-based style of LeWitt's wall drawings.