Skip to main content
100%

Recreated Sol LeWitt Reproduction in D3

✓ Published1🌍 Public
CCameron Wehr
Last edited Sep 8, 2023
Created on Sep 8, 2023

This example recreates a Sol LeWitt drawing using D3.js, rendering a grid of horizontal and vertical bars that are revealed through circular masks. The composition shows a central circle cut out from both a field of horizontal stripes and a field of vertical stripes, creating an intersecting geometric pattern. The code uses D3 selections (`select`, `range`) to append SVG elements, and applies `mask` attributes with `circle-mask` and `circle-mask-2` to layer the two stripe directions. Rectangles are generated via a join operation, with masks defined by black and white fill rectangles and circles.

AI-generated description

A reproduction of a Sol LeWitt art piece.

MIT Licensed

Similar vizzes