Fork of Starter
✓ Published1🌍 Public
This example reproduces a Sol LeWitt drawing as an interactive full-window SVG. It shows a grid of vertical and horizontal black bars with a central circular region where the bars are masked away, creating a white circle against a striped background. The code uses raw DOM APIs like `document.createElementNS` and `setAttribute` to construct SVG elements dynamically, and SVG `<mask>` elements to selectively hide bars within the circle. The dimensions of the composition are computed from `window.innerHeight` and `window.innerWidth`, adapting the artwork to any viewport size.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed