Skip to main content
100%

Sol LeWitt con D3 multiples símbolos

✓ Published0🌍 Public
SSergio
Last edited Sep 4, 2025
Created on Sep 4, 2025

This example generates a grid of horizontal and vertical rectangles using D3.js and applies two SVG masks to create a Sol LeWitt-inspired pattern. The masks are built with the `symbol` and `symbols` APIs, rendering each of D3’s predefined symbol shapes (like circles, crosses, and diamonds) at a large size. One mask uses inverted colors to alternate the visible pattern, while the other uses standard masking. The code leverages `select`, `range`, and `join` to efficiently create the 100 rectangles per direction, all rendered as SVG on a full-window canvas.

AI-generated description
MIT Licensed

Similar vizzes