A gravity simulation to written using processing.js