LoneForgeMotion
Library
3D  /  Shapes

Newton Pendulum

Five glossy spheres hang from a frosted glass bar and trade momentum with crisp impact sparks.

Source kit 8 KB
Loop
6 s, seamless
Video
1080p, 30 fps, no sound
Built with
HTML canvas, one file
Made with
Gemini 4 Neon, xhigh effort

The prompt

The prompt this loop was built from. Paste it into your agent to make your own version from the idea.

Attached a picture are my favorite 10 so far. View all the animations on the website, https://motion.loneforge.ai/, can you take a look at the animations I have an create me 10 more that people would really enjoy because they look high quality and satisfying.

Build spec:
Make a seamless 6 second loop of a glossy glass and metal Newton pendulum cradle on a warm luminous dual-glow background.

Five 3D-shaded spheres tinted smoothly from the first accent color to the second hang by fine threads from a sleek frosted glass crossbar above a soft shadow floor with colored bounce light. Three times per loop, the outer left sphere swings up and strikes the stationary center spheres, transferring momentum cleanly with a crisp impact ring, flash, and spark burst that launches the outer right sphere outward and back in continuous hypnotic motion.

Write it as one self-contained JavaScript file drawing on an HTML canvas 2D context via render(ctx, W, H, ph, colors), where ph runs from 0 to 1. No text, logos, images or libraries. Scale from the shorter side of the canvas so it works wide, vertical and square, and adapt to light or dark backgrounds.

The source kit

Download

The 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.js7 KB
  • core.js2 KB
  • index.html1 KB
  • render.py2 KB

Free to use and change for your own work. See the license.