Skip to main content
100%

Untitled

✓ Published0🌍 Public
Gguththered
Last edited Jun 8, 2022
Created on Jun 8, 2022
Forked from Javascript Basics

A grid of thin, vertical rectangles is masked by a white circle at the center of the canvas, leaving the circle’s interior free of these lines. A second set of thin, horizontal rectangles is also masked by the same circular region. The code creates SVG elements directly using the DOM API, generating 100 vertical and 100 horizontal rectangles. Each set uses an SVG `<mask>` with a circle to clip the rectangles, revealing an empty circular area against the lines.

AI-generated description
MIT Licensed

Similar vizzes