Library
Particles / Background
Particle Bloom
Hundreds of particles spiral out from a pulsing center and fade at the edge.
- Loop
- 6 s, seamless
- Video
- 1080p, 30 fps, no sound
- Built with
- HTML canvas, one file
- Made with
- Claude Fable 5.2
The prompt
The prompt this loop was built from. Paste it into your agent to make your own version from the idea.
Make a seamless 6 second motion loop of particles blooming outward, for use as a background. About 400 small round particles leave the center of the frame, travel outward on gently curving paths, and fade before they reach the corners. Half curve clockwise and half counterclockwise. Each particle has its own start time, so the flow is continuous, and each one fades in, peaks in the middle of its life and fades out. Particles grow slightly as they travel. Colors range between the two accents, and about one in nine carries a soft halo. At the center, a white core with a glow in the first accent color pulses twice per loop. Use additive blending. Positions come from a fixed pseudo-random function of the particle number, never from a random call, so every render is identical. Write it as one JavaScript file that draws on an HTML canvas with the 2D context. One function draws any moment: render(ctx, W, H, ph, colors), where ph is the loop phase from 0 to 1. Write every motion in whole turns of ph so the last frame flows into the first and the loop has no seam. No text, no logos, no images, no libraries. Scale every size from the shorter side of the canvas so it works wide, vertical and square. Take three colors as inputs: a background and two accents.
The source kit
DownloadThe same code that is drawing the loop on this page. Unzip it, point your agent at START-HERE.md, and it can rebuild the loop and change it.
- LICENSE.txt1 KB
- PROMPT.md1 KB
- START-HERE.md1 KB
- animation.js1 KB
- core.js2 KB
- index.html1 KB
- render.py2 KB
Free to use and change for your own work. See the license.