Learn creative coding writing simple programs

69. Combine circular and other motions

Objects can have more than one motion attached to them. For example an airplane may be flying forward and up. A leave falling from a tree is rotating and moving down. You can do the same in your programs: you can add several motions together to create a more complex motion. In this episode we combine linear motions, circular motion and a bit of randomness.

Tags: animation, circular, motion

Code editor

You can make changes to the code below. Then

Questions and comments

Try to stay close to the topic of this episode. Use the Processing forums for help with unrelated Processing projects (or hire me for help ;-)

To indicate that a word in your comment is code, use the `backtick`. Example
Do `float` and `int` smell similar?
To highlight code blocks, surround it with ``` code-fences ``` like this:
``` void setup() { size(600, 600); } ```