Skip to main content
100%

Sol LeWitt Reproduction with D3

✓ Published0🌍 Public
Jjajinkya
Last edited Nov 5, 2022
Created on Nov 5, 2022

This example reproduces a Sol LeWitt art piece using D3.js, generating a grid of thin horizontal and vertical rectangles that overlap across the full browser window. The composition uses SVG masks to create alternating visibility: one mask reveals a central diamond shape against a black background, while the other inverts the pattern with a white background. The code leverages D3’s `select`, `range`, and `join` to append rectangles, and `symbol` with `symbols` to define the diamond mask paths. Rendering is SVG-based, with masks applied via the `mask` element.

AI-generated description

A reproduction of a Sol LeWitt art piece.

MIT Licensed

Similar vizzes