P5.js implementation of Gravitational Attraction

The circle in the middle is exerting a force of attraction
on the moving circles. Smaller circles have less "mass" and
therefore move faster.

Thanks to Dan Shiffman's Nature of Code book for the inspiration.