Created
October 28, 2014 05:38
-
-
Save kebot/7ebdbbea20d5974d8416 to your computer and use it in GitHub Desktop.
Processing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int stepSize = 5; | |
int r = -45; | |
draw() { | |
rotate(radians(r)); | |
r += stepSize; | |
if (r > 45) { | |
stepSIze = -5; | |
} else if (r < -45 { | |
stepSize = 5; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment