Sol LeWitt reproduction with D3
✓ Published0🌍 Public
This example reproduces Sol LeWitt’s 1984 geometric wall drawing using D3.js. It renders a grid of sixteen semi-transparent colored rectangles that fill the entire browser viewport, arranged in four rows and four columns with a beige background. The code uses D3’s `select`, `.data()`, and `.join()` methods to bind the color data to SVG `<rect>` elements, computing each block’s position and size dynamically from `window.innerWidth` and `window.innerHeight`. Each rectangle’s fill color is drawn from a predefined array of sixteen named CSS colors.
AI-generated descriptionHomework for Episode 3: Sol LeWitt in Vanilla JavaScript.
My goal was to reproduce Sol LeWitt's work AXA Center, New York 1984.
MIT Licensed