Skip to main content
100%

Sol LeWitt exercise

✓ Published0🌍 Public
BBart van Pelt
Last edited Dec 31, 2022
Created on Dec 30, 2022
Forked from HTML Starter

This example generates a generative art piece inspired by Sol LeWitt, dividing the viewport into vertical panels whose masks alternate between inverted states. Using D3.js, it creates horizontal and vertical striped rectangles within each panel, with the mask assignments flipping based on whether the panel index is even or odd. The code uses `d3.select`, `d3.range`, and `d3.symbols` to structure the SVG output, rendering lines with `rect` elements and applying SVG masks to vary the pattern visibility across each section.

AI-generated description

Course starting at 5:09

MIT Licensed

Similar vizzes