Posted By

bchapman on 07/07/11


Tagged

effects after


Versions (?)

Stepped_Interpolation


 / Published in: JavaScript
 

Stepped Interpolation mode which stutters movement.

  1. // Stepped Interpolation (Stutter)
  2.  
  3. // Variables
  4. stepSize = 5; // in Frames
  5.  
  6. // Math
  7. stepRate = 1/framesToTime(stepSize);
  8. nthTime = Math.floor(time/framesToTime(stepSize))/stepRate;
  9. valueAtTime(nthTime);

Report this snippet  

You need to login to post a comment.