Skip to main content
100%

Fork of Fork of For of Sol LeWitt Reproduction with D3

✓ Published1🌍 Public
Rroyable88
Last edited Dec 16, 2022
Created on Dec 9, 2022

This example reproduces a Sol LeWitt art piece using D3.js, rendering a grid of horizontal and vertical SVG rectangles overlaid with two circular masks. The first mask creates a circular hole in the center of the horizontal lines, while the second mask reverses the effect, leaving a solid circle in the middle of the vertical lines. The code uses `d3.select`, `d3.range`, and the `.join()` method to construct the SVG elements, with masks defined via `append('mask')` and composed of `rect` and `circle` shapes.

AI-generated description

A reproduction of a Sol LeWitt art piece.

MIT Licensed

Similar vizzes