Skip to main content
100%

Sol LeWitt with D3

✓ Published1🌍 Public
Aainhoadieruiz@gmail.com
Last edited Dec 1, 2023
Created on Dec 1, 2023
Forked from Sol LeWitt

This example reproduces a Sol LeWitt-style drawing using D3.js, rendering two sets of horizontal and vertical striped rectangles that intersect within circular masks on an SVG canvas. The code generates 100 of each rectangle type, with the first mask revealing a solid circle and the second inverting the pattern, creating a layered geometric contrast. It uses D3’s `select` and `range` functions from version 6.6.1 to build the SVG dynamically, positioning elements based on window dimensions.

AI-generated description

A reproduction of a Sol LeWitt art piece

MIT Licensed

Similar vizzes