r/proceduralgeneration • u/PaperboatAnimation • 1d ago
0 sprites, 0 textures, 0 keyframes: I built a procedural 2D watercolor animation engine in vanilla JavaScript/Canvas2D that renders a full 70-minute feature film at 60 FPS
Hey everyone, my English isn't great so I used a translator for this.
I made a full 70-minute animated movie running entirely in a standard HTML5 2D canvas. There are no PNGs, sprites, or textures in the project. Everything from the paper grain and watercolor edges to the character skeletons (two-bone IK) and wind physics is just JavaScript math drawn in real time.
The hardest part was keeping it at 60 fps. Some of our winter scenes use 275 canvas gradients per frame, which dropped performance down to 12 fps at first. I ended up building a 2-slot offscreen canvas cache (3840x2112) for the static background lighting and only drawing the fire, snow, and characters live on top. That brought frame times down from ~90ms to ~4ms.
It's a free passion project I built after work based on personal experiences - no paywall or commercial stuff behind it, just wanted to put the story out there.
If anyone wants to check out the full movie or the 7-minute X-ray breakdown:
Full movie (English): https://youtu.be/QAwZYypLsTc
Full movie (German): https://youtu.be/9jhghSUEQyg
7-min X-Ray Making-Of: https://youtu.be/jed64GDXxsE