The theory:
- Choose a random point to put a new sphere
- If the new sphere overlaps any of the previous spheres, pick another random point
- Repeat until the new point does not overlap any of the previously chosen points
- Move the new sphere to that point
The reality:
- After a few tries, the algorithm just gives up and places the new sphere without regard to collisions
Outlines are drawn at the prospective random point as well as the new candidate points. The sphere animates to the final point.
So close.