Skip to main content
100%

Grouping Rect by <g>

✓ Published1🌍 Public
Llukasilg.sol@gmail.com
Last edited May 27, 2024
Created on May 27, 2024

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 description

A reproduction of a Sol LeWitt art piece.

MIT Licensed

Similar vizzes