Skip to main content
100%

LeWitt D3

✓ Published0🌍 Public
Ttomasnihlen
Last edited Sep 26, 2022
Created on Sep 23, 2022
Forked from LeWitt Vertical

This example creates a full-screen generative drawing inspired by Sol LeWitt’s minimalist wall drawings, using raw SVG rectangles rather than the D3 library (which is listed as a dependency but unused in the code). It calculates the number of bars based on the browser window’s width and height, rendering evenly spaced vertical black bars that alternate with gaps of equal size. The rendering approach directly manipulates the SVG namespace via `document.createElementNS`, setting each rectangle’s position and dimensions dynamically to fill the viewport. The result is a simple, procedural grid pattern that responds to the window size.

AI-generated description
MIT Licensed

Similar vizzes