Posted By

mike_fowler on 09/02/11


Tagged


Versions (?)

Generating a sin wave


 / Published in: JavaScript
 

  1. var time = new Date().getTime() * 0.002;
  2. var degrees = Math.sin( time ) * 5;

Report this snippet  

You need to login to post a comment.