Sol lewitt in d3 after consolidation
✓ Published0🌍 Public
Mmarc.chatton@outlook.com
Last edited Jan 8, 2026
Created on Jan 6, 2026
This example reproduces Sol LeWitt’s geometric wall drawings using D3.js with an SVG rendering. It draws a grid of black horizontal and vertical rectangles, then applies two masks—one normal and one inverted—to selectively reveal or hide parts of the lines. The masks use d3.symbol and d3.symbols to create white or black shape cutouts positioned across the canvas. The code relies on d3.select, d3.range, and d3.join to bind data and construct the SVG elements dynamically.
AI-generated descriptionMIT Licensed