Skip to main content
100%

Fork of Sol Lewitt reproduction itv d3 correctly

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

This example reproduces a Sol Lewitt-inspired geometric artwork using D3 version 6.6.1 in a React environment, rendering to SVG. It generates 100 horizontal and 100 vertical rectangles spaced 20 pixels apart, covering the full viewport. Two SVG masks create circular cutout effects: one masks the horizontal bars with a white circle on black, the other applies an inverse pattern to the vertical bars. The code uses `select`, `range`, `.join('rect')`, and `.attr('mask')` to construct the layered composition dynamically.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes