Skip to main content
100%

Almost Original Sol Lewitt reproduction with d3

✓ Published1🌍 Public
Cclara7227
Last edited Nov 11, 2022
Created on Nov 11, 2022

This example reproduces a Sol LeWitt-style wall drawing using D3.js within a React environment, rendered as scalable vector graphics (SVG). It generates a grid of horizontal and vertical rectangles, each masked to create alternating geometric patterns. The code uses D3’s `range`, `select`, and `join` APIs to efficiently create and update the SVG elements, and employs `symbol` to draw star-like shapes within the masks. The vignette demonstrates how procedural generation and masking can recreate minimalist art with code.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes