Learn creative coding writing simple programs

27. Animating while rotating

In our previous episode we used rotation and a while loop to create a pattern. We created and rotated many objects.
In this episode we animate using the rotate() function. On each frame of our animation (each time draw() gets called), we rotate our screen a little bit and then draw a circle. We repeat this over and over, so we see this circles spin around the 0,0 position. When we add some randomness to the size of the circles an interesting pattern appears.

Tags: rotate, animate, animation

Code editor

You can make changes to the code below. Then
Below you can ask and answer questions related to this video. If your question is unrelated to the video, please post it at the Processing Forum as I'm unable to help with all of your programs and still have enough free time to eat and sleep :)
comments powered by Disqus