Op Art & Moire
Concentric Pulse
26 white rings march outward from center in a ~6s loop; a second scaled field produces slow moire interference fringes on a dark background.
canvasmedium complexitymoderate motion
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
Dark-mode hero backgrounds, loading screens, or meditative ambient displays needing a hypnotic depth illusion.
When not to
Light-background UIs (background hardcoded dark). Contexts where moire shimmer may trigger visual sensitivity.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change RINGS to 18, increase PERIOD to 9000 for a slower pulse, and tint rings amber by replacing "rgba(255,255,255," with "rgba(255,200,100,". Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.
Safe to edit
- ring count (RINGS=26)
- animation cycle duration (PERIOD=6200)
- moire scale factor (GAP*1.058)
- moire counter-march speed (phase*0.62)
- stroke opacity range (0.10 + 0.82*op)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- DPR-aware canvas sizing and setTransform
- visibilitychange pause/resume
- reduced-motion static fallback (drawOneFrame)
- IIFE wrapper
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background hardcoded near-black in both CSS and canvas — edit both to change
- No pointer interactivity — purely passive
- Moire intensity is fixed with no runtime control
More Op Art & Moire components
- Moire DriftTwo concentric ring grids drift apart with opposed phase, producing slow-shifting moire interference fringes via canvas lighter/difference compositing.
- Bulge GridA 22x22 white line grid on black warps radially outward as an invisible lens drifts on a slow lissajous path; a faint offset twin grid creates moire shimmer.
- Wave ColumnsVertical B&W stripe columns undulate via detuned sine waves, creating a woven fabric ripple with a central bulge illusion and moire interference.
- Checker WarpA black-and-white checkerboard bends around a breathing lens at the center, slowly rotating and drifting for a hypnotic op-art illusion.
- Line Illusion64 horizontal lines kink at a center crease with differential shading, creating a breathing 3D fold illusion of two angled sheets.
- Spiral VertigoTwo counter-rotating Archimedean spirals at near-equal pitch create shifting moire fringes and illusory depth pull on a dark background.