Skip to main content
100%

illusions

✓ Published0🌍 Public
Mmkarnam.mahendra@gmail.com
Last edited Jun 7, 2024
Created on Jun 7, 2024
Forked from svgfundamentals

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes