Skip to main content
100%

Fork of Fork of Full Sol LeWitt Reproduction with D3

✓ Published1🌍 Public
Rraturi22@gmail.com
Last edited Aug 7, 2025
Created on Aug 7, 2025

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
MIT Licensed

Similar vizzes