Skip to main content
100%

Fork of solLewitt

✓ Published1🌍 Public
Mmartina.dallamico.1@studenti.unipd.it
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from solLewitt

This example shows a generative, full-screen SVG composition of vertical rectangles. The visualization fills the browser viewport with 100 evenly spaced bars, each 10 pixels wide, that stretch from the top to the bottom of the window. The code uses the JavaScript DOM API to create SVG elements via `document.createElementNS` and sets the `width` and `height` attributes of the container based on the window's `innerWidth` and `innerHeight`. Each rectangle’s `x` position is calculated mathematically as a multiple of 20 pixels, producing a regular, rhythmic pattern. This is a straightforward reproduction of a Sol LeWitt-inspired drawing, relying solely on native SVG and no external libraries.

AI-generated description

A reproduction of solo Lewitt

MIT Licensed

Similar vizzes