Main Page | Package | Index | Help

com.mosesSupposes.fuse

class PennerEasing

Object
  |
  +--com.mosesSupposes.fuse.PennerEasing


class PennerEasing
extends Object

Robert Penner's original set of easing equations are used in The Fuse Kit by permission. See Fuse-Kit-License.html in fuse package directory for terms.

Usage:
This is an optional set of easing equations that enables you to use string shortcuts with the engine. You may also choose not to register this class if you wish to use default easing, the mx.transitions.easing package, or other easing equations that follow the same format.

To use as string shortcuts you must register this class with the engine, either with ZigoEngine.register or ZigoEngine.simpleSetup.

You may then use the method names in this class as shortcut-strings for the easing parameter of tween calls, such as "easeOutQuad".


Author:
Robert Penner


Method Summary

static
easeInBack ( t: Number, b: Number, c: Number, d: Number, s: Number ): Number
Generates tween where target backtracks slightly, then reverses direction and moves to position.

static
easeInBounce ( t: Number, b: Number, c: Number, d: Number ): Number
Generates easing in tween where target bounces upon entering the animation and then accelarates towards its final position.

static
easeInCirc ( t: Number, b: Number, c: Number, d: Number ): Number
Generates circular easing in tween where equation for motion is based on the equation for half of a circle, which uses a square root.

static
easeInCubic ( t: Number, b: Number, c: Number, d: Number ): Number
Generates cubic easing in tween where equation for motion is based on the power of three and is a bit more curved than a quadratic ease.

static
easeInElastic ( t: Number, b: Number, c: Number, d: Number, a: Number, p: Number ): Number
Generates elastic easing in tween where equation for motion is based on Hooke's Law of F = -kd.

static
easeInExpo ( t: Number, b: Number, c: Number, d: Number ): Number
Generates exponential (sharp curve) easing in tween where equation for motion is based on the number 2 raised to a multiple of 10.

static
easeInOutBack ( t: Number, b: Number, c: Number, d: Number, s: Number ): Number
Generates tween where target backtracks slightly, then reverses direction towards final position, overshoots final position, then ultimately reverses direction to reach final position.

static
easeInOutBounce ( t: Number, b: Number, c: Number, d: Number ): Number
Generates easing in-out tween where target bounces upon entering the animation and then accelarates towards its final position.

static
easeInOutCirc ( t: Number, b: Number, c: Number, d: Number ): Number
Generates circular easing in-out tween where equation for motion is based on the equation for half of a circle, which uses a square root.

static
easeInOutCubic ( t: Number, b: Number, c: Number, d: Number ): Number
Generates cubic easing in-out tween where equation for motion is based on the power of three and is a bit more curved than a quadratic ease.

static
easeInOutElastic ( t: Number, b: Number, c: Number, d: Number, a: Number, p: Number ): Number
Generates elastic easing in-out tween where equation for motion is based on Hooke's Law of F = -kd.

static
easeInOutExpo ( t: Number, b: Number, c: Number, d: Number ): Number
Generates exponential (sharp curve) easing in-out tween where equation for motion is based on the number 2 raised to a multiple of 10.

static
easeInOutQuad ( t: Number, b: Number, c: Number, d: Number ): Number
Generates quadratic, or "normal" easing in-out tween (two half tweens fused together) where equation for motion is based on a squared variable.

static
easeInOutQuart ( t: Number, b: Number, c: Number, d: Number ): Number
Generates quartic easing in-out tween where equation for motion is based on the power of four and feels a bit "other-worldly" as the acceleration becomes more exaggerated.

static
easeInOutQuint ( t: Number, b: Number, c: Number, d: Number ): Number
Generates quartic easing in-out tween where equation for motion is based on the power of five and motion starts slow and becomes quite fast in what appears to be a fairly pronounced curve.

static
easeInOutSine ( t: Number, b: Number, c: Number, d: Number ): Number
Generates sinusoidal easing in-out tween where equation for motion is based on a sine or cosine function.

static
easeInQuad ( t: Number, b: Number, c: Number, d: Number ): Number
Generates quadratic, or "normal" easing in tween where equation for motion is based on a squared variable.

static
easeInQuart ( t: Number, b: Number, c: Number, d: Number ): Number
Generates quartic easing in tween where equation for motion is based on the power of four and feels a bit "other-worldly" as the acceleration becomes more exaggerated.

static
easeInQuint ( t: Number, b: Number, c: Number, d: Number ): Number
Generates quartic easing in tween where equation for motion is based on the power of five and motion starts slow and becomes quite fast in what appears to be a fairly pronounced curve.

static
easeInSine ( t: Number, b: Number, c: Number, d: Number ): Number
Generates sinusoidal easing in tween where equation for motion is based on a sine or cosine function.

static
easeOutBack ( t: Number, b: Number, c: Number, d: Number, s: Number ): Number
Generates tween where target moves and overshoots final position, then reverse direction to reach final position.

static
easeOutBounce ( t: Number, b: Number, c: Number, d: Number ): Number
Generates easing out tween where target bounces before reaching final position.

static
easeOutCirc ( t: Number, b: Number, c: Number, d: Number ): Number
Generates circular easing out tween where equation for motion is based on the equation for half of a circle, which uses a square root.

static
easeOutCubic ( t: Number, b: Number, c: Number, d: Number ): Number
Generates cubic easing out tween where equation for motion is based on the power of three and is a bit more curved than a quadratic ease.

static
easeOutElastic ( t: Number, b: Number, c: Number, d: Number, a: Number, p: Number ): Number
Generates elastic easing out tween where equation for motion is based on Hooke's Law of F = -kd.

static
easeOutExpo ( t: Number, b: Number, c: Number, d: Number ): Number
Generates exponential (sharp curve) easing out tween where equation for motion is based on the number 2 raised to a multiple of 10.

static
easeOutInBack ( t: Number, b: Number, c: Number, d: Number, s: Number ): Number
Generates tween where target moves towards and overshoots final position, then ultimately reverses direction to reach its beginning position.

static
easeOutInBounce ( t: Number, b: Number, c: Number, d: Number ): Number
Generates easing out-in tween where target bounces upon entering the animation and then accelarates towards its final position.

static
easeOutInCirc ( t: Number, b: Number, c: Number, d: Number ): Number
Generates circular easing out-in tween where equation for motion is based on the equation for half of a circle, which uses a square root.

static
easeOutInCubic ( t: Number, b: Number, c: Number, d: Number ): Number
Generates cubic easing out-in tween where equation for motion is based on the power of three and is a bit more curved than a quadratic ease.

static
easeOutInElastic ( t: Number, b: Number, c: Number, d: Number, a: Number, p: Number ): Number
Generates elastic easing out-in tween where equation for motion is based on Hooke's Law of F = -kd.

static
easeOutInExpo ( t: Number, b: Number, c: Number, d: Number ): Number
Generates exponential (sharp curve) easing out-in tween where equation for motion is based on the number 2 raised to a multiple of 10.

static
easeOutInQuart ( t: Number, b: Number, c: Number, d: Number ): Number
Generates quartic easing out-in tween where equation for motion is based on the power of four and feels a bit "other-worldly" as the acceleration becomes more exaggerated.

static
easeOutInQuint ( t: Number, b: Number, c: Number, d: Number ): Number
Generates quartic easing out-in tween where equation for motion is based on the power of five and motion starts slow and becomes quite fast in what appears to be a fairly pronounced curve.

static
easeOutInSine ( t: Number, b: Number, c: Number, d: Number ): Number
Generates sinusoidal easing out-in tween where equation for motion is based on a sine or cosine function.

static
easeOutQuad ( t: Number, b: Number, c: Number, d: Number ): Number
Generates quadratic, or "normal" easing out tween where equation for motion is based on a squared variable.

static
easeOutQuart ( t: Number, b: Number, c: Number, d: Number ): Number
Generates quartic easing out tween where equation for motion is based on the power of four and feels a bit "other-worldly" as the acceleration becomes more exaggerated.

static
easeOutQuint ( t: Number, b: Number, c: Number, d: Number ): Number
Generates quartic easing out tween where equation for motion is based on the power of five and motion starts slow and becomes quite fast in what appears to be a fairly pronounced curve.

static
easeOutSine ( t: Number, b: Number, c: Number, d: Number ): Number
Generates sinusoidal easing out tween where equation for motion is based on a sine or cosine function.

static
linear ( t: Number, b: Number, c: Number, d: Number ): Number
Generates linear tween with constant velocity and no acceleration.



Method Documentation

easeInBack

static function easeInBack(t: Number,
 b: Number,
 c: Number,
 d: Number,
 s: Number): Number
Generates tween where target backtracks slightly, then reverses direction and moves to position.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
s
(optional) controls amount of overshoot, with higher value yielding greater overshoot.
Returns:
position

easeInBounce

static function easeInBounce(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates easing in tween where target bounces upon entering the animation and then accelarates towards its final position.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInCirc

static function easeInCirc(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates circular easing in tween where equation for motion is based on the equation for half of a circle, which uses a square root.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInCubic

static function easeInCubic(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates cubic easing in tween where equation for motion is based on the power of three and is a bit more curved than a quadratic ease.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInElastic

static function easeInElastic(t: Number,
 b: Number,
 c: Number,
 d: Number,
 a: Number,
 p: Number): Number
Generates elastic easing in tween where equation for motion is based on Hooke's Law of F = -kd.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
a
(optional) amplitude, or magnitude of wave's oscillation
p
(optional) period
Returns:
position

easeInExpo

static function easeInExpo(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates exponential (sharp curve) easing in tween where equation for motion is based on the number 2 raised to a multiple of 10.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInOutBack

static function easeInOutBack(t: Number,
 b: Number,
 c: Number,
 d: Number,
 s: Number): Number
Generates tween where target backtracks slightly, then reverses direction towards final position, overshoots final position, then ultimately reverses direction to reach final position.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
s
(optional) controls amount of overshoot, with higher value yielding greater overshoot.
Returns:
position

easeInOutBounce

static function easeInOutBounce(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates easing in-out tween where target bounces upon entering the animation and then accelarates towards its final position.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInOutCirc

static function easeInOutCirc(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates circular easing in-out tween where equation for motion is based on the equation for half of a circle, which uses a square root.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInOutCubic

static function easeInOutCubic(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates cubic easing in-out tween where equation for motion is based on the power of three and is a bit more curved than a quadratic ease.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInOutElastic

static function easeInOutElastic(t: Number,
 b: Number,
 c: Number,
 d: Number,
 a: Number,
 p: Number): Number
Generates elastic easing in-out tween where equation for motion is based on Hooke's Law of F = -kd.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
a
(optional) amplitude, or magnitude of wave's oscillation
p
(optional) period
Returns:
position

easeInOutExpo

static function easeInOutExpo(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates exponential (sharp curve) easing in-out tween where equation for motion is based on the number 2 raised to a multiple of 10.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInOutQuad

static function easeInOutQuad(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates quadratic, or "normal" easing in-out tween (two half tweens fused together) where equation for motion is based on a squared variable.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInOutQuart

static function easeInOutQuart(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates quartic easing in-out tween where equation for motion is based on the power of four and feels a bit "other-worldly" as the acceleration becomes more exaggerated.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInOutQuint

static function easeInOutQuint(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates quartic easing in-out tween where equation for motion is based on the power of five and motion starts slow and becomes quite fast in what appears to be a fairly pronounced curve.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInOutSine

static function easeInOutSine(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates sinusoidal easing in-out tween where equation for motion is based on a sine or cosine function.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInQuad

static function easeInQuad(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates quadratic, or "normal" easing in tween where equation for motion is based on a squared variable.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInQuart

static function easeInQuart(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates quartic easing in tween where equation for motion is based on the power of four and feels a bit "other-worldly" as the acceleration becomes more exaggerated.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInQuint

static function easeInQuint(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates quartic easing in tween where equation for motion is based on the power of five and motion starts slow and becomes quite fast in what appears to be a fairly pronounced curve.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeInSine

static function easeInSine(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates sinusoidal easing in tween where equation for motion is based on a sine or cosine function.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutBack

static function easeOutBack(t: Number,
 b: Number,
 c: Number,
 d: Number,
 s: Number): Number
Generates tween where target moves and overshoots final position, then reverse direction to reach final position.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
s
(optional) controls amount of overshoot, with higher value yielding greater overshoot.
Returns:
position

easeOutBounce

static function easeOutBounce(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates easing out tween where target bounces before reaching final position.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutCirc

static function easeOutCirc(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates circular easing out tween where equation for motion is based on the equation for half of a circle, which uses a square root.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutCubic

static function easeOutCubic(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates cubic easing out tween where equation for motion is based on the power of three and is a bit more curved than a quadratic ease.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutElastic

static function easeOutElastic(t: Number,
 b: Number,
 c: Number,
 d: Number,
 a: Number,
 p: Number): Number
Generates elastic easing out tween where equation for motion is based on Hooke's Law of F = -kd.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
a
(optional) amplitude, or magnitude of wave's oscillation
p
(optional) period
Returns:
position

easeOutExpo

static function easeOutExpo(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates exponential (sharp curve) easing out tween where equation for motion is based on the number 2 raised to a multiple of 10.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutInBack

static function easeOutInBack(t: Number,
 b: Number,
 c: Number,
 d: Number,
 s: Number): Number
Generates tween where target moves towards and overshoots final position, then ultimately reverses direction to reach its beginning position.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
s
(optional) controls amount of overshoot, with higher value yielding greater overshoot.
Returns:
position

easeOutInBounce

static function easeOutInBounce(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates easing out-in tween where target bounces upon entering the animation and then accelarates towards its final position.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutInCirc

static function easeOutInCirc(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates circular easing out-in tween where equation for motion is based on the equation for half of a circle, which uses a square root.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutInCubic

static function easeOutInCubic(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates cubic easing out-in tween where equation for motion is based on the power of three and is a bit more curved than a quadratic ease.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutInElastic

static function easeOutInElastic(t: Number,
 b: Number,
 c: Number,
 d: Number,
 a: Number,
 p: Number): Number
Generates elastic easing out-in tween where equation for motion is based on Hooke's Law of F = -kd.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
a
(optional) amplitude, or magnitude of wave's oscillation
p
(optional) period
Returns:
position

easeOutInExpo

static function easeOutInExpo(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates exponential (sharp curve) easing out-in tween where equation for motion is based on the number 2 raised to a multiple of 10.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutInQuart

static function easeOutInQuart(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates quartic easing out-in tween where equation for motion is based on the power of four and feels a bit "other-worldly" as the acceleration becomes more exaggerated.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutInQuint

static function easeOutInQuint(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates quartic easing out-in tween where equation for motion is based on the power of five and motion starts slow and becomes quite fast in what appears to be a fairly pronounced curve.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutInSine

static function easeOutInSine(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates sinusoidal easing out-in tween where equation for motion is based on a sine or cosine function.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutQuad

static function easeOutQuad(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates quadratic, or "normal" easing out tween where equation for motion is based on a squared variable.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutQuart

static function easeOutQuart(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates quartic easing out tween where equation for motion is based on the power of four and feels a bit "other-worldly" as the acceleration becomes more exaggerated.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutQuint

static function easeOutQuint(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates quartic easing out tween where equation for motion is based on the power of five and motion starts slow and becomes quite fast in what appears to be a fairly pronounced curve.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

easeOutSine

static function easeOutSine(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates sinusoidal easing out tween where equation for motion is based on a sine or cosine function.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position

linear

static function linear(t: Number,
 b: Number,
 c: Number,
 d: Number): Number
Generates linear tween with constant velocity and no acceleration.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
Returns:
position


The documentation was generated from the following file:


Generated on 1/14/2007 11:31:53 PM