Skip to main content
100%

Full D3 Sol LeWitt pt2

✓ Published1🌍 Public
AArturo Guevara
Last edited Sep 5, 2022
Created on Sep 5, 2022
Forked from D3 Sol LeWitt pt2

This example reproduces a Sol LeWitt-style geometric composition using D3 v3 and SVG rendering. It shows a grid of thin vertical and horizontal rectangles spanning the full viewport, with each set masked to reveal a central diamond shape through alternating positive and negative space. The code builds the masks by appending `mask` elements with contrasting fill colors, then draws the diamond using a D3 path generator with the `symbol` API and a large size value. The layout relies on `d3.range` to generate 100 equally spaced rectangles along each axis.

AI-generated description

A reproduction of a Sol LeWitt art piece.

MIT Licensed

Similar vizzes