Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Episode 4: Sol LeWitt Reproduction with D3

Public visualization

Fork of Episode 4: Sol LeWitt Reproduction with D3

0 stars0🌍 Public
SShitij Mathur
Last edited Feb 12, 2025
Created on Feb 12, 2025

This example reproduces a Sol LeWitt geometric artwork as a generative drawing in SVG. It divides the canvas into four quadrants, each rendered with a distinct pattern of thin rectangular bands, using masks to crop horizontal, vertical, and rotated line groups. The code relies on D3’s `select` and `range` functions to create 100 repeating rectangles per section, with each pattern defined by explicit SVG `mask` elements. Rectangles are positioned and rotated via attributes like `transform`, with dimensions fixed to the viewport.

AI-generated description

Trying to reproduce a Sol LeWitt art piece using D3. Inspired by the original piece here.

Comments

Sign in to join the discussion.

MIT Licensed