Posted By


bchapman on 07/07/11

Tagged


Statistics


Viewed 77 times
Favorited by 0 user(s)

Stepped_Interpolation


/ Published in: JavaScript
Save to your folder(s)

Stepped Interpolation mode which stutters movement.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.