Sol Lewitt Project in D3 Attempt #1 (using enter method)
✓ Published0🌍 Public
CCasualWanderer20XX
Last edited Sep 9, 2025
Created on Sep 9, 2025
This example renders a grid of vertical and horizontal bars overlaid with two circular masks, creating a crosshatch pattern that fades within a central circle. It uses D3 v7’s `select`, `range`, and the enter method to append SVG rectangles, while defining masks with `circle` and `rect` elements to control visibility. The code draws 100 vertical and 100 horizontal strips, each masked to reveal only the intersecting circular regions. The visualization demonstrates a geometric generative composition inspired by Sol Lewitt, rendered entirely with SVG.
AI-generated descriptionMIT Licensed