🌍 Public
Viewing a saved revision (read-only)
c1057c10637940e7a2539e76157b9c8e
Pseudo Visualization with DOM
This example demonstrates a striped optical illusion using pure SVG and the DOM API. It draws vertical black stripes across the entire canvas, then uses a mask with a black circle to hide those stripes inside the central circle. Inside that circle, a clipPath restricts horizontal black stripes, creating a contrasting orientation shift. The code uses `document.createElementNS` and `setAttribute` to construct SVG elements dynamically without any external libraries.
AI-generated description