Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

LeWitt D3

Public visualization

Viewing a saved revision (read-only)

62c63b532f104cb59f81f0176819f307

LeWitt D3

0 stars0🌍 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