Skip to main content
100%

Sol LeWitt Reproduction with D3

✓ Published0🌍 Public
PPetrescu Alexandru
Last edited Sep 1, 2023
Created on Sep 1, 2023
Forked from D3 starter

This example recreates a Sol LeWitt-style drawing using intersecting striped rectangles and circular masks. It renders two sets of perpendicular lines—horizontal and vertical—each composed of 100 thin `rect` elements, with overlapping regions revealed through the use of SVG `mask` elements and circles. The visualization uses D3 v7’s `select`, `range`, and `join` methods to generate and bind data, drawing directly to an SVG canvas sized to the browser window. The complementary masks create a striking negative-space circle in the center.

AI-generated description

Learning

MIT Licensed

Similar vizzes