Skip to main content
100%

Sol LeWitt Reproduction with D3

✓ Published2🌍 Public
YYingkai Song
Last edited Dec 2, 2022
Created on Dec 2, 2022

This example reproduces a Sol LeWitt art piece using D3.js, rendering a grid of thin horizontal and vertical rectangles that overlap to form a dynamic pattern. The code generates 100 lines in each direction, with alternating mask effects—one mask inverts a central circle’s fill to create a contrasting ring, while the other keeps it solid. Using D3’s `select`, `range`, and SVG `mask` elements, the visualization fills the entire browser window, with each line’s position and size computed from the viewport dimensions. The artwork is displayed as vector graphics, leveraging D3’s declarative API for efficient DOM manipulation.

AI-generated description

A reproduction of a Sol LeWitt art piece.

MIT Licensed

Similar vizzes