Using the P3D renderer and an ArrayList. 35000 colored particles are created on screen (in HSB colorMode). Each particle has a different mass (depending on color, but its not really really color-dependant) and so each reacts differently to the attraction of your mouse (with mouse clicked). Each particle has a different color, given by the position of the two indicators (and proportional to mass) at the moment it's created. Progressive friction in space is also applied (look at the two white lines at left and right of the screen). When the lines are on the top section the friction is low, incre
To tweak this sketch, first download it.
Make your updates, then upload your tweak!