Ball Pool

2025

JavaScript animation programming canvas box2d 2d

Dynamic web graphics animation demo using HTML5 canvas and box2d physics library. Adapted as from the original by Mr Doob "Ball Pool" as a learning project. An interactive graphics toy built with HTML5 canvas and the Box2D physics � click and drag to fling a pool of colourful shapes around, or spawn new ones on demand.
Adapted from Mr Doob's original "Ball Pool" experiment as a learning exercise, with the physics running through Box2D's rigid-body simulation while each shape renders and animates independently for a surprisingly light footprint at scale.

»Go!