Infinitude
The Vanishing Room
Colorful dots bloom one by one over a minimal line-drawn room until it vanishes beneath them, then the cycle resets. Warm cream palette with bold accent colors.
canvaslight 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
Ambient looping backgrounds, art/creative portfolio hero sections, waiting screens where gentle accumulation creates visual interest.
When not to
Contexts requiring legible content overlays — dots will obscure the room and any underlying text over time.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the palette by replacing the cols array with blues and greens: cols=['#D8D097','#00c896','#BCB6A9','#06b6d4','#22c55e','#0a0608'], and slow the spawn rate by changing autoTimer>120 to autoTimer>200. 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
- dot colors (cols array)
- spawn interval (autoTimer > 120)
- max dot count (240 cap via stickers.shift())
- dot size range (r: big ? 10:6 + random * 22:16)
- room line proportions (S.w*0.16, S.h*0.62)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- DPR-aware canvas sizing (fitCanvas)
- visibilitychange pause/start
- prefers-reduced-motion static fallback (40 dots, single draw)
- IIFE wrapper
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Room never truly clears — dots accumulate until oldest shift off the array (FIFO), so coverage is perpetual not rhythmic reset
- No pointer interaction despite dots spawning randomly — not interactive
More Infinitude components
- Pulsing Dot FieldA lattice of red dots pulses in radius and alpha via staggered sine waves; bright dots flash yellow at peak. No user input required.
- Mirror Tunnel26 rings of colored dots recede toward a vanishing point, growing in size and radius as they rush toward the viewer — a looping mirrored tunnel illusion.
- The Dotted GourdAn orange ribbed gourd rendered on canvas with 110 dark dots scaled by curvature and depth; the whole form sways gently as if in a breeze.
- The Endless NetA grid of scalloped double-arc loops drawn on deep red canvas, each cell pulsing in brightness on its own sine-wave phase, evoking woven netting.
- Dissolve115 colored dots orbit an empty center in a slow ellipse, periodically dissolving outward in a breathing scatter pattern with depth-based opacity.
- Mirrored Light Box12 nested glowing squares dive inward in a perpetual zoom loop while rotating; colored corner dots hue-rotate continuously over a deep dark stage.