Script 3.

Particles.

This script represents a very simple simulation of elastic particles in space. The mechanics introduced are elastic collisions, logarithmic attraction, and acceleration.

Different canvas border collision implementation very needed.