Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Episode 3: Sol LeWitt in Vanilla JavaScript version 2

Public visualization

Fork of Fork of Episode 3: Sol LeWitt in Vanilla JavaScript version 2

0 stars0🌍 Public
MMaras13
Last edited Sep 20, 2022
Created on Sep 20, 2022

This example generates a colorful, generative art piece inspired by Sol LeWitt, built entirely with vanilla JavaScript and the SVG API. It renders a full-screen grid of randomly colored vertical rectangles, then overlays a large white circle in the center. A second grid of horizontal rectangles is clipped to that same circular shape using an SVG `<mask>`, creating a layered, intersecting pattern. All shapes are created dynamically via `document.createElementNS`, with colors assigned through randomized RGB values.

AI-generated description

Inspiration from Curran's live streaming

Started from scratch. Lot of research helps.

Exercise options:

Reproduce any Sol LeWitt piece.

Create generative art in the spirit of Sol LeWitt.

Add animation to what we’ve created (e.g. rotation).

Comments

Sign in to join the discussion.

MIT Licensed