Simon translated Daniel Shiffman’s p5.js tutorial on random circles with no overlap into Processing (Java). The project is about a “circle packing”-like algorithm. Circles are placed randomly in the canvas, but only if they are not overlapping with any previous circles.
While translating Simon usually doesn’t look at the original code – “I memorised the code!” he screams. “If I make 1000 circles I get nothing because I’m stuck inside an infinite loop. I’m going to use the variable called Protection! A quick and dirty solution to this!”