🌍 Public
Viewing a saved revision (read-only)
f78ad04f11314484a0a4d4d3c002f032
LeWitt Art With Multiple Shapes in function in D3
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.