Grouping Rect by <g>
✓ Published1🌍 Public
A single-page web drawing reproduces a Sol LeWitt piece by layering two sets of parallel lines: horizontal stripes on even rows and vertical stripes on uneven columns. It uses D3.js functions `select`, `range`, and the `.join` method to append 100 `<rect>` elements to each of two `<g>` groups. Two SVG masks, each containing a circle with a contrasting fill, selectively reveal the stripes in a circular window at the center, while the surrounding area remains hidden. The entire canvas adapts to the browser's inner width and height.
AI-generated descriptionA reproduction of a Sol LeWitt art piece.
MIT Licensed