Easing and tweening classes for scserver and sclang. Ported from the Cinder C++ framework - original equations by Robert Penner.
NOTE: All these expects an input 0-1 as first argument to .value. If you give it out-of-range values the behavior is undefined.
see EaseGallery helpfile for a graphical overview. see below for examples.
EaseNone | easing equation for a simple linear tweening with no easing |
EaseInQuad | easing equation for a quadratic (t^2) ease-in, accelerating from zero velocity |
EaseOutQuad | easing equation for a quadratic (t^2) ease-out, decelerating to zero velocity |
EaseInOutQuad | easing equation for a quadratic (t^2) ease-in/out, accelerating until halfway, then decelerating |
EaseOutInQuad | easing equation for a quadratic (t^2) ease-out/in, decelerating until halfway, then accelerating |
EaseInCubic | easing equation function for a cubic (t^3) ease-in, accelerating from zero velocity |
EaseOutCubic | easing equation for a cubic (t^3) ease-out, decelerating to zero velocity |
EaseInOutCubic | easing equation for a cubic (t^3) ease-in/out, accelerating until halfway, then decelerating |
EaseOutInCubic | easing equation for a cubic (t^3) ease-out/in, decelerating until halfway, then accelerating |
EaseInQuart | easing equation for a quartic (t^4) ease-in, accelerating from zero velocity |
EaseOutQuart | easing equation for a quartic (t^4) ease-out, decelerating to zero velocity |
EaseInOutQuart | easing equation for a quartic (t^4) ease-in/out, accelerating until halfway, then decelerating |
EaseOutInQuart | easing equation for a quartic (t^4) ease-out/in, decelerating until halfway, then accelerating |
EaseInQuint | easing equation function for a quintic (t^5) ease-in, accelerating from zero velocity |
EaseOutQuint | easing equation for a quintic (t^5) ease-out, decelerating to zero velocity |
EaseInOutQuint | easing equation for a quintic (t^5) ease-in/out, accelerating until halfway, then decelerating |
EaseOutInQuint | easing equation for a quintic (t^5) ease-out/in, decelerating until halfway, then accelerating |
EaseInSine | easing equation for a sinusoidal (sin(t)) ease-in, accelerating from zero velocity |
EaseOutSine | easing equation for a sinusoidal (sin(t)) ease-out, decelerating from zero velocity |
EaseInOutSine | easing equation for a sinusoidal (sin(t)) ease-in/out, accelerating until halfway, then decelerating |
EaseOutInSine | easing equation for a sinusoidal (sin(t)) ease-out/in, decelerating until halfway, then accelerating |
EaseInExpo | easing equation for an exponential (2^t) ease-in, accelerating from zero velocity |
EaseOutExpo | easing equation for an exponential (2^t) ease-out, decelerating from zero velocity |
EaseInOutExpo | easing equation for an exponential (2^t) ease-in/out, accelerating until halfway, then decelerating |
EaseOutInExpo | easing equation for an exponential (2^t) ease-out/in, decelerating until halfway, then accelerating |
EaseInCirc | easing equation for a circular (sqrt(1-t^2)) ease-in, accelerating from zero velocity |
EaseOutCirc | easing equation for a circular (sqrt(1-t^2)) ease-out, decelerating from zero velocity |
EaseInOutCirc | easing equation for a circular (sqrt(1-t^2)) ease-in/out, accelerating until halfway, then decelerating |
EaseOutInCirc | easing equation for a circular (sqrt(1-t^2)) ease-out/in, decelerating until halfway, then accelerating |
EaseInBounce(a) | easing equation for a bounce (exponentially decaying parabolic bounce) ease-in, accelerating from zero velocity. the \a parameter controls overshoot, the default producing a 10% overshoot |
EaseOutBounce(a) | easing equation for a bounce (exponentially decaying parabolic bounce) ease-out, decelerating from zero velocity. the \a parameter controls overshoot, the default producing a 10% overshoot |
EaseInOutBounce(a) | easing equation for a bounce (exponentially decaying parabolic bounce) ease-in/out, accelerating until halfway, then decelerating. the \a parameter controls overshoot, the default producing a 10% overshoot |
EaseOutInBounce(a) | easing equation for a bounce (exponentially decaying parabolic bounce) ease-out/in, decelerating until halfway, then accelerating. the \a parameter controls overshoot, the default producing a 10% overshoot |
EaseInBack(a) | easing equation for a back (overshooting cubic easing: (a+1)*t^3 - a*t^2) ease-in, accelerating from zero velocity. the \a parameter controls overshoot, the default producing a 10% overshoot |
EaseOutBack(a) | easing equation for a back (overshooting cubic easing: (a+1)*t^3 - a*t^2) ease-out, decelerating from zero velocity. the \a parameter controls overshoot, the default producing a 10% overshoot |
EaseInOutBack(a) | easing equation for a back (overshooting cubic easing: (a+1)*t^3 - a*t^2) ease-in/out, accelerating until halfway, then decelerating. the \a parameter controls overshoot, the default producing a 10% overshoot |
EaseOutInBack(a) | easing equation for a back (overshooting cubic easing: (a+1)*t^3 - a*t^2) ease-out/in, decelerating until halfway, then accelerating. the \a parameter controls overshoot, the default producing a 10% overshoot |
EaseInElastic(a, p) | easing equation for an elastic (exponentially decaying sine wave) ease-in, accelerating from zero velocity. the \a parameter is amplitude and \p is period. |
EaseOutElastic(a, p) | easing equation for an elastic (exponentially decaying sine wave) ease-out, decelerating from zero velocity. the \a parameter is amplitude and \p is period. |
EaseInOutElastic(a, p) | easing equation for an elastic (exponentially decaying sine wave) ease-in/out, accelerating until halfway, then decelerating. the \a parameter is amplitude and \p is period. |
EaseOutInElastic(a, p) | easing equation for an elastic (exponentially decaying sine wave) ease-out/in, decelerating until halfway, then accelerating. the \a parameter is amplitude and \p is period. |
EaseInAtan(a) | easing equation for an atan ease-in, accelerating from zero velocity. the \a parameter is curvature. |
EaseOutAtan(a) | easing equation for an atan ease-out, decelerating from zero velocity. the \a parameter is curvature. |
EaseInOutAtan(a) | easing equation for an atan ease-in/out, accelerating until halfway, then decelerating. the \a parameter is curvature. |