USE TURBOWARP FOR BEST RESULTS: https://turbowarp.org/1139707405 A quick experiment. Since verlet is entirely deterministic, it is possible to predict exactly where each ball will end up given an initial set of parameters. We can then find the color of each ball's ending position and rerun the script and we are now guaranteed that each ball will end up in the right place! Hope you enjoy, and feel free to try it with your own images too! The antialiasing option sets the ball color to the average color of the surface it covers. Everything else is pretty self explanatory
thanks for viewing!