Sunday, February 13, 2011

Simple code. Interesting pattern.

line(.5 * radius * cos(frameCount * .0001) + (frameCount * .01)%width,
.5 * radius * sin(frameCount * .001) + sin(frameCount * .04) + height/2,
-.5 * radius * cos(frameCount * .0001) + (frameCount * .01)%width,
-.5 * radius * sin(frameCount * .001) + sin(frameCount * .04) + height/2);

No comments:

Post a Comment