Skip to main content
100%

Full D3 Sol LeWitt Reproduction

✓ Published1🌍 Public
Mmegan-grannan
Last edited Aug 10, 2023
Created on Aug 10, 2023

This example reproduces a Sol LeWitt-style geometric drawing using D3 v7 in an SVG. It shows a grid of alternating vertical and horizontal rectangles overlaid with two circular masks, creating a crosshatched pattern with a central starburst-like cutout. The code uses D3 selections, `range`, `join`, and `symbol` with `symbols[1]` to generate shapes, while `select` appends the SVG to the body. Masks are built via a custom `renderMask` function that toggles fill colors based on an `inverted` parameter. Data is generated procedurally with `range(n)` for 100 iterations.

AI-generated description

Reproduction of Sol LeWitt art piece.

MIT Licensed

Similar vizzes