title: Rotating a sine curve
body: <p>I'm drawing out sine curves using the following formula,</p>
  
  <pre><code>this.x += this.speed
  this.y = this.amp * Math.sin( this.x * this.cycles ) + this.center
  </code></pre>
  
  <p>I'm dotting out points by drawing tiny circles every frame. What this achieves is a nice looking sine curve that draws from left to right. But if I want to rotate this curve so that it draws in a random 360 degree, how should I modify the code? Aka, sometimes I want the curve to be the same drawing from left to right, other times I want it drawing at a 45 degree downwards, sometimes, backwards, etc...</p>