LeWitt Art With Multiple Shapes in function in D3
✓ Published1🌍 Public
This example reproduces a Sol LeWitt–style generative artwork by layering two sets of thin rectangular strips—vertical and horizontal—across the full viewport. Each set is masked using an SVG `<mask>` element, with the masks populated by D3 symbols (from `d3.symbol` and `symbols`) positioned in a row, alternating fill colors to create intersecting geometric patterns. The code uses `select`, `range`, and `join` from D3 v7 to bind data and render both the rectangles and the mask shapes dynamically.
AI-generated descriptiona reproduction of a sol LeWitt art piece.
MIT Licensed