Skip to main content
100%

LeWitt Art With Multiple Shapes in function in D3

✓ Published1🌍 Public
AAkbarjon
Last edited May 19, 2022
Created on May 19, 2022

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 description

a reproduction of a sol LeWitt art piece.

MIT Licensed

Similar vizzes