Skip to main content
100%

Full Sol Lewitt Reproduction with D3

✓ Published1🌍 Public
Yyejichun@naver.com
Last edited Jul 13, 2024
Created on Jul 12, 2024

This example reproduces a Sol LeWitt wall drawing as a full-screen SVG composition. Two sets of one hundred thin rectangles—one horizontal, one vertical—are overlaid using D3’s `select`, `range`, and `join`. Two SVG masks, created with `symbols[1]` (a diamond) and `renderMask`, invert the pattern’s visibility, leaving a diamond-shaped cutout in each orientation. The `svg.call` method applies both masks, and the code uses `window.innerWidth` and `window.innerHeight` to size the canvas.

AI-generated description

A reproduction of a Sol LeWitt art piece.

MIT Licensed

Similar vizzes