Psychedelic
Trip Tunnel
26 lobed concentric rings recede into a glowing magenta vanishing point, cycling a Fillmore-poster palette across a slow inward perspective tunnel.
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, music/festival visuals, ambient screensavers, psychedelic or retro-poster themed sections.
When not to
Light backgrounds (dark navy hardcoded). Any context where constant motion competes with readable text overlays.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change LOBES from 7 to 5, swap PAL to a cool blue/green palette ([[40,180,255],[60,235,180],[120,255,80],[0,120,200],[80,220,255]]), and slow the tunnel cycle to 35 seconds by changing the /22 divisor. 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)
- lobe count (LOBES=7)
- palette array (PAL)
- tunnel cycle speed (/22 divisor)
- lobe amplitude factor (0.16*z)
- perspective compression (EXP=2.05)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard (staticFrame fallback)
- visibilitychange pause/resume
- opaque wipe per frame (prevents trail accumulation)
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded in both CSS and canvas fillRect — must change both to retheme
- No pointer interactivity — fully passive
- 26 stroked paths per frame; may be slow on very low-end mobile at large viewport sizes
More Psychedelic components
- Liquid Melt7 lava-lamp blobs drift and merge with cycling pink-to-cyan hues on a dark canvas; "MELT" lettering warps per-glyph with skew and scale transforms above.
- Kaleidoscope9 liquid blobs drift in a source wedge mirrored into 6-fold kaleidoscope symmetry on canvas; the whole disc rotates slowly with a hot-pink/violet/amber…
- Warp TypeBold serif "WARP" sliced into vertical columns that ripple and bulge over swirling gold-amber lava blobs rendered with additive screen blending.
- Swirl Vortex5 petal arms across 11 rings rotate at differential speeds to create a slow inward vortex in pink-violet-cyan hues with a glowing core.
- Blob Lamp9 glowing metaballs slowly rise, sway, merge and split through a violet-magenta-amber color ramp on a dark canvas — lava lamp in canvas pixels.
- Ripple Bloom22 lobed color rings bloom outward from a glowing center in pink-magenta-violet-cyan hues, cycling with a slow organic wobble via additive blending.