Ball Multiplier
One ball bounces inside a circle. Every time it hits the wall, it splits into more
balls. Exponential growth made visible — tune the circle size, starting balls, and
how many spawn per bounce, then watch it explode.
Balls: 0
Bounces: 0
Capped: no
Start
Restart
Pause
Sound: On
How it works: each ball moves in a straight line under a light
gravity pull. When a ball's distance from the center reaches the circle's radius, we
reflect its velocity across the surface normal (a clean elastic bounce) — and, unless
we've hit the max-balls cap, we also spawn N new balls right at that same point, each
given the same speed but a randomly jittered direction. Every one of those goes on to
bounce (and multiply) independently. With "spawned per bounce" set to 1, a single ball
should in principle double its population on every bounce — pure exponential growth —
which is why there's a hard cap: without one, the ball count would double forever and
lock up the browser tab within a few seconds.