Infinitude
Dissolve
115 colored dots orbit an empty center in a slow ellipse, periodically dissolving outward in a breathing scatter pattern with depth-based opacity.
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 ambient backgrounds, screensaver-style hero sections, or any context needing gentle looping motion with a cosmic/particle aesthetic.
When not to
Light backgrounds (hardcoded dark fill). Contexts requiring legible text overlays — dots occupy the center zone during reformation.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the color palette to cool blues and teals by setting cols to ['#00eaff','#0080ff','#a0e0ff','#ffffff'], increase dot count N to 180, and slow the dissolve cycle by changing t*0.33 to t*0.18. 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 count (N=115)
- color palette (cols array)
- scatter/dissolve rate (t*0.33)
- breath amplitude (0.6+0.5*Math.sin)
- orbital speed multiplier (p.sp*0.012)
- spin rate (0.0025)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard (REDUCED)
- visibilitychange pause/resume
- DPR-aware canvas sizing with fitCanvas()
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded as #060406 — must edit CSS and initial fillStyle to change
- No pointer interactivity — purely passive
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.
- 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.
- Cadmium Gourd StripesWavy cadmium-yellow and black bands undulate horizontally while 70 white and red dots drift upward through the field in a looping scroll.