Library
Loading / Shapes
Comet Spinner
A comet chases around a ring while a small orb pulses at the center and a thinner ring turns the other way.
- Loop
- 6 s, seamless
- Video
- 1080p, 30 fps, no sound
- Built with
- HTML canvas, one file
- Made with
- Claude Sonnet 5.5, max effort
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 a circular loading spinner. On a dark ground with a faint glow in the second accent behind it, a thin faint ring sits in the center. A tapered arc chases around the ring twice per loop, thin and transparent at its tail and thick and bright at its head, shading from the second accent at the tail to the first accent at the head, with a soft glow around it. The head carries a white hot dot with its own glow. The arc breathes between about a third and two thirds of the circle, and its speed eases a little faster and slower as it goes. Inside it sits a thinner inner ring with three short arcs in the second accent turning the opposite way three times per loop. A small orb at the center pulses twice per loop and sends out a faint ripple ring each time. About sixteen tiny dots twinkle and drift around the outside of the ring. 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. Use additive blending on a dark background and normal blending on a light one.
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.js5 KB
- core.js2 KB
- index.html1 KB
- render.py2 KB
Free to use and change for your own work. See the license.