Skip to main content
100%

Sol LeWitt reproduction with d3

✓ Published2🌍 Public
AAngela Kochoska
Last edited Nov 4, 2022
Created on Oct 28, 2022

This example reproduces a Sol LeWitt wall drawing using D3.js, rendering a grid of intersecting horizontal and vertical rectangles as SVG elements. The artwork shows a dense cross-hatch pattern that gradually disappears within a central circular region, creating a stark contrast between the outer textured area and the empty circle. The code generates 100 lines in each direction using `d3.range` and `selectAll(...).join('rect')`, then applies two SVG masks (`inner-mask` and `outer-mask`) to selectively reveal or hide the lines. The piece scales to the full browser window size.

AI-generated description

A reproduction of a Sol LeWitt piece.

MIT Licensed

Similar vizzes