LoneForgeMotion
Library
Shapes  /  Lines

Shape Shift

Nested outlines turn and morph from triangle to square to hexagon to circle.

Source kit 6 KB
Loop
8 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 8 second motion loop of morphing outlines.

Sixteen nested outlines share one center, from small to large. Each outline morphs through four shapes over the loop: triangle, square, hexagon, circle, and back to triangle, holding each shape briefly and easing between them. Build the shapes from one polar function so the morph is a smooth blend with no popping. The outlines do not morph together: each larger one runs a little behind the one inside it, so the change ripples outward. The whole stack turns once per loop, with each outline rotated slightly more than the last, and the sizes breathe a little. Inner outlines are thick and in the first accent color; outer ones are thin and fade toward the second. Outlines only, no fills. Use additive blending.

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

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

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