Skip to main content
100%

Sol LeWitt-d3-shape

✓ Published0🌍 Public
Bbillzhou2005
Last edited Jan 6, 2023
Created on Jan 6, 2023
Forked from full Sol LeWitt-d3

This example generates an abstract grid of horizontal and vertical stripes that are selectively masked by two inverted symbol shapes, using D3 v6. It renders SVG rectangles across the full viewport, with 100 horizontal bars and 100 vertical bars, each assigned a mask. The `d3.mask` API combines a white or black background rect with a large `d3.symbol` path (symbols[4], a cross) translated to the center. Two masks, one inverted, create a dynamic interplay between the geometric grid and the central symbol.

AI-generated description

A demostration for SVG shapes

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes