Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of For of Sol LeWitt Reproduction with D3

Public visualization

Viewing a saved revision (read-only)

8e510e4f55cb492381fcd7aab14a1ba6

Fork of Fork of For of Sol LeWitt Reproduction with D3

0 stars1🌍 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.