Learn creative coding writing simple programs

44. Combine sine functions to create crazy waveforms

If you multiply several sin() function calls together, like in sin()*sin()*sin(), the result is still a number between -1 and 1, but you get much more interesting shapes when you use the result to draw or animate in your programs.

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