Above is an art work I did and trying to improve. The next step would be to take a external input(sonic rangefinder) to control the delay time. Hence I am looking for some pointer as to where to begin the process.
Thank you guys! Below is the original code I used and found on the previous processing forum.