Viewing a saved revision (read-only)
eb7def249ceb494d9e63967a9f2da9f9
Fork of LeWitt Recreation w/ D3
This example recreates a LeWitt-style drawing using an SVG canvas populated with two intersecting sets of 100 rectangular bars—horizontal and vertical bands that form a grid. A circular mask is applied to the horizontal bars, and an inverted circular mask is applied to the vertical bars, producing a central circle where only the vertical lines appear, while the surrounding area shows both orientations. The visualization uses D3 version 7, specifically the `select` and `range` functions, to generate the rectangles and apply SVG mask elements dynamically based on the window dimensions.
AI-generated descriptionA bare minimum HTML page demonstrating use of D3 following the course of Curran Kelleher on YouTube