🌍 Public
Viewing a saved revision (read-only)
20bf1758488047aaab2e106c388382cc
Fork of lewis art
This example renders intersecting horizontal and vertical line patterns within a circular boundary on an SVG canvas. It uses the SVG Mask API and multiple `mask` elements to selectively reveal or hide line segments, creating a geometric art composition. The code constructs rectangles dynamically with `document.createElementNS` and positions them at regular intervals based on the canvas dimensions. The rendering logic relies on native JavaScript math functions like `Math.ceil` and `Math.min` to calculate line counts and spacing.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.