Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Sol LeWitt Creation

Public visualization

Sol LeWitt Creation

0 stars1🌍 Public
Ddexuzi
Last edited Aug 11, 2022
Created on Aug 11, 2022
Forked from Javascript Basics

This example generates a full-screen SVG that reproduces Sol LeWitt’s minimalist wall drawings. It creates a grid of 50 narrow vertical rectangles, each ten pixels wide and spaced twenty pixels apart, which collectively fill the entire browser viewport. The piece demonstrates the use of the Document Object Model (DOM) API’s `createElementNS` method to construct SVG elements directly through JavaScript, rather than employing a library like D3. The code iterates a loop, appending each rect to the SVG root, whose dimensions are set from `window.innerWidth` and `window.innerHeight`. The result is a clean, algorithmically generated abstract composition.

AI-generated description

A reproduction of sol le witt()

Comments

Sign in to join the discussion.

MIT Licensed