Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of sol lewit reproduction assignment

Public visualization

Fork of sol lewit reproduction assignment

0 stars0🌍 Public
KKerim
Last edited Aug 28, 2022
Created on Aug 24, 2022

This example reproduces a Sol LeWitt-inspired drawing using D3 v7 selections and SVG masks. Three alternating vertical and horizontal stripe patterns are overlaid on the page, each masked by a large circle that reveals or hides the lines through contrasting black and white mask fills. The code builds the SVG structure with `d3.select`, generates stripe counts via `d3.range`, and applies masks through D3’s `attr` method, rendering the final output as SVG.

AI-generated description

introduction to d3 with many useful tips

Comments

Sign in to join the discussion.

MIT Licensed