illusions
✓ Published0🌍 Public
This example presents an optical illusion using overlapping vertical bars on an SVG canvas. The visualization shows a circular aperture in the center of the screen, created by masking a set of thin rectangles. The code uses raw JavaScript and the SVG API, constructing elements like `rect` and `circle` with `createElementNS`, and employs an SVG `mask` to reveal the bars only within the circular region. The result is a dynamic composition that highlights the interplay between geometry and visual perception.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed