W changes the function to determine the color of the waves C changes the function to determine the color of the circle R resets and stops it (clicking the green flag again also restarts it) UP and DOWN arrow keys change the delay by .01 seconds LEFT and RIGHT arrow keys change the delay by .1 seconds
This is a result of me experimenting with the sine (and cosine) function in the middle of a 400 mile car ride. There is no delay by default, so it will go as fast as your computer can run it (not very fast for me). There is one important variable (named "Iterations") that keeps track of how many times the main loop executes. The sine of the iteration is used most of the things on the screen: For the sprite drawing the waves in the background: X= all the values from -241 to 240 (one at a time)(-241 for offset waves), Y=sin(Iterations) For the cat's motion: X= sin(Iterations)*180 Y= cos(Iterations)*180 For the cat's rotation: Degrees= sin(Iterations)*180+90 For the thickness of the circle: Pen width= sin(Iterations)*9+10 For the color of all the lines; If Sine: Color= sin(Iterations)*100+100 If Cosine: Color= cos(Iterations)*100+100 If Linear: Color= Iterations Changelog: July 24 2016: Released