Skip to main content
100%

API DOM

✓ Published0🌍 Public
Mmarc.chatton@outlook.com
Last edited Jan 6, 2026
Created on Jan 6, 2026

This example displays a full-screen abstract pattern of 100 horizontal and 100 vertical SVG rectangles, layered to create a grid. A white circular mask is applied to the horizontal bars, cropping them within a centered ring while the vertical bars span the entire viewport. The visualization is built entirely with the SVG DOM API, using `document.createElementNS` to construct each rect, mask, and circle, and relies on `window.innerWidth` and `window.innerHeight` to size the canvas. The code draws no explicit data, instead showcasing a programmatic composition inspired by a Sol LeWitt lesson.

AI-generated description
MIT Licensed

Similar vizzes