Viewing a saved revision (read-only)
c0a9770b03794579a953c62790498206
Sol LeWitt Reproduction with D3 - squares
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.