Library
Grid / Retro
Grid Run
A neon floor grid rushes toward you under a striped sun and a field of stars.
- 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 a retro neon grid. The frame is split by a horizon a little below the middle. Above it: a dark sky that warms toward the horizon, about 90 small stars that twinkle, and a large sun sitting on the horizon. The sun is a circle with a vertical gradient from the second accent color at the top to the first at the bottom, with horizontal bands cut out of its lower half that drift downward and get thicker. Below the horizon: a floor grid in perspective. Lines fan out from the vanishing point, and horizontal lines rush toward the viewer, spaced tighter near the horizon. Every seventh horizontal line is thicker and in the second accent color. Draw a bright line on the horizon itself. Use additive blending for the grid. 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.js2 KB
- core.js2 KB
- index.html1 KB
- render.py2 KB
Free to use and change for your own work. See the license.