Click the green flag and then move the mouse around.
Anyone can use this in their program(s) without needing to give me any credit. In the code there are comments which tell you how to modify it to make it your own. I recommend tinkering with the numbers the comments tell you to to make it just right for you and your program.