Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Sol LeWitt reproduction circle

Public visualization

Fork of Sol LeWitt reproduction circle

0 stars1🌍 Public
Jjonathanh21
Last edited Aug 28, 2022
Created on Aug 28, 2022

This example reproduces a Sol LeWitt wall drawing by generating two intersecting sets of striped rectangles within a circular mask on an SVG canvas. One set of horizontal bands is clipped by a white circle mask, while a second set of vertical bands is clipped by an inverted black circle mask, creating a checkerboard-like pattern inside the circle. The code uses raw JavaScript and the SVG DOM API, creating elements with `document.createElementNS` and applying masks via `url(#circle-mask)` and `url(#circle-mask-2)`. The rectangles are laid out programmatically in two loops of 100 iterations each.

AI-generated description

A reproduction of Sol LeWitt art piece

Comments

Sign in to join the discussion.

MIT Licensed