Learn creative coding writing simple programs

67. Circular motion: sine and her cousin.

We have previously used sin() to generate numbers that continuosly slide between -1 and 1, but we did not study what sin() represented. This time we do that. We have a look at sine and cosine, two similar functions that help us create a circular motion. You can play with the sine/cosine tool at http://bit.ly/sine_cosine I hope it helps you understand sine and cosine.

Tags: sine, cosine, sin, cos, circular, motion, Computer Programming

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, use ```processing and ``` like this:
  ```processing
  void setup() {
    size(600, 600);
  }
  ```