Learn creative coding writing simple programs

41. A function that generates sine waves

This time we try out a new function called sin(). It's a function related to math and trigonometry and it returns numbers between -1 and 1. sin() takes just one parameter. We will use sin() to generate all kinds of interesting graphics and animations in coming episodes.

Tags: sin, sine, wave

Code editor

You can make changes to the code below. Then
Questions and comments are welcome! :) But please try to stay close to the topic of this episode. Use the Processing forums for help with your Processing projects (or hire me for help ;-)