/ Published in: JavaScript
Stepped Interpolation mode which stutters movement.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Stepped Interpolation (Stutter) // Variables stepSize = 5; // in Frames // Math stepRate = 1/framesToTime(stepSize); nthTime = Math.floor(time/framesToTime(stepSize))/stepRate; valueAtTime(nthTime);