Skip to main content
100%

Fork of SoL LeWitt with D3 (from video)

✓ Published1🌍 Public
Ddan.tinoco@gmail.com
Last edited Aug 29, 2024
Created on Aug 28, 2024

This example renders a generative art piece inspired by Sol LeWitt, using D3 v6 to create a grid of horizontal and vertical rectangles. Two SVG masks form a circular aperture, with one mask revealing the horizontal lines through a white circle and the other showing vertical lines outside a black circle. The drawing updates to the full window size and uses D3’s `select`, `range`, and `join` to bind data to the 100 rectangles per axis. The result is a clean, mask-based composition that changes with the viewport.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes