🌍 Public
Viewing a saved revision (read-only)
c2e3aeb387ba42d7a64e383a14f7758b
Fork of Fork of Full Sol LeWitt Reproduction with D3
Rraturi22@gmail.com
Last edited Aug 7, 2025
Created on Aug 7, 2025
Forked from Fork of Full Sol LeWitt Reproduction with D3
This example creates a dynamic grid of horizontal and vertical stripes that form a generative composition, reminiscent of a Sol LeWitt drawing. It renders 100 lines in each direction, with their visibility altered by two SVG masks containing paths generated from D3’s `symbol` API. The masks invert the stripes’ appearance, creating intersecting shapes across the canvas. The code uses D3’s `select`, `range`, and `join` to build the SVG elements, with the mask logic defined in a custom `renderMask` function.
AI-generated description