testD3 Sol LetWitt Reproduction
✓ Published1🌍 Public
This example reproduces a Sol LeWitt-style drawing using D3.js, where a grid of horizontal and vertical rectangles is rendered in SVG. The code uses `d3.select` to append an SVG canvas and `d3.range` to generate 100 equal intervals, creating thin striped bars. Two masks, each containing a circle, control visibility: one mask makes the horizontal bars disappear outside a central circle while the other does the opposite for vertical bars, producing an overlapping circular pattern. The dimensions adapt to the full browser window.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed