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
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