Sol LeWitt Reproduction with D3 - squares
✓ Published0🌍 Public
TToly
Last edited Dec 27, 2022
Created on Dec 27, 2022
Forked from Episode 4: Sol LeWitt Reproduction with D3
This example reproduces a Sol LeWitt geometric composition by dividing the canvas into four quadrants, each filled with a distinct pattern of parallel or rotated line segments. The piece uses D3 v6 to generate SVG rectangles and applies four separate `mask` definitions to confine each pattern to its respective square. Horizontal, vertical, and 45-degree rotated lines are created by binding data from `d3.range` and manipulating `x`, `y`, `width`, `height`, and `transform` attributes. The viewport is scaled to the browser window, and the code imports `select` and `range` directly from the D3 module.
AI-generated descriptionTrying to reproduce a Sol LeWitt art piece using D3. Inspired by the original piece here.
MIT Licensed