circle field (collision at scale) — live canvas animation example

motion & easing8+
trig, angles & vectors8+
collision detection11-
numbers in motion7+
geometry & shapes8+
generative showpieces13+
handy helpers7+

Every pair is checked each frame via circleToCircle — the classic O(n²) approach. When two circles touch (distance ≤ r₁ + r₂), they flash and exchange velocity. This is what your game loop actually runs.