| Package | org.as3lib.kitchensync.easing |
| Class | public class Back |
Back produces values that go beyond the usual bounds of 0.0 to 1.0 by a specified amount (overshoot). Visually, the subject would appear to move behind the starting point or past the ending point before returning to the target position.
The easing classes provide static methods for interpolating the change between two values over time.
Each class handles the interpolation, or easing, differently. Each class typically contains three methods
- easeIn(), easeOut() and easeInOut() - which vary the rate of change
of the values. Most of the easing functions produce values as a percentage - a number between 0.0 and 1.0
See also
| Method | Defined by | ||
|---|---|---|---|
|
easeIn(timeElapsed:Number, duration:Number, overshoot:Number):Number
[static]
easeIn starts out slow and increases in speed towards the end of the duration.
| Back | ||
|
easeInOut(timeElapsed:Number, duration:Number, overshoot:Number):Number
[static]
easeInOut combines the motion of easeIn and easeOut by starting out slow and increasing in speed
towards the middle of the duration, then slowing down again towards the end.
| Back | ||
|
easeOut(timeElapsed:Number, duration:Number, overshoot:Number):Number
[static]
easeOut starts out fast and decreases in speed towards the end of the duration.
| Back | ||
|
easeOutIn(timeElapsed:Number, duration:Number, overshoot:Number):Number
[static]
easeOutIn combines the motion of easeIn and easeOut by starting out decelerating
towards the middle of the duration, then accelerating end.
| Back | ||
| Constant | Defined by | ||
|---|---|---|---|
| DEFAULT_OVERSHOOT : Number = 1.70158 [static] The default amount of overshoot if the user doesn't specify.
| Back | ||
| easeIn | () | method |
public static function easeIn(timeElapsed:Number, duration:Number, overshoot:Number):NumbereaseIn starts out slow and increases in speed towards the end of the duration. The values dip below the starting point (0.0) before increasing towards the end point (1.0)
ParameterstimeElapsed:Number — The time since the tween began in milliseconds or frames.
|
|
duration:Number — The duration of the tween, in milliseconds or frames.
|
|
overshoot:Number — The ammount to go over past the target value. The higher the number, the farther it will go.
|
Number — percentage complete - between 0.0 and 1.0 but with the overshoot, it may extend below 0.0 or above 1.0
|
| easeInOut | () | method |
public static function easeInOut(timeElapsed:Number, duration:Number, overshoot:Number):NumbereaseInOut combines the motion of easeIn and easeOut by starting out slow and increasing in speed towards the middle of the duration, then slowing down again towards the end. The values dip below the starting point (0.0) then overshoot the end point (1.0) before returning back to it.
ParameterstimeElapsed:Number — Specifies the time since the tween began in milliseconds or frames.
|
|
duration:Number — Specifies the duration of the tween, in milliseconds or frames.
|
|
overshoot:Number — The ammount to go over past the target value. The higher the number, the farther it will go.
|
Number — percentage complete - between 0.0 and 1.0 but with the overshoot, it may extend below 0.0 or above 1.0
|
| easeOut | () | method |
public static function easeOut(timeElapsed:Number, duration:Number, overshoot:Number):NumbereaseOut starts out fast and decreases in speed towards the end of the duration. The values overshoot the end point (1.0) before returning back to it.
ParameterstimeElapsed:Number — Specifies the time since the tween began in milliseconds or frames.
|
|
duration:Number — Specifies the duration of the tween, in milliseconds or frames.
|
|
overshoot:Number — The ammount to go over past the target value. The higher the number, the farther it will go.
|
Number — percentage complete - between 0.0 and 1.0 but with the overshoot, it may extend below 0.0 or above 1.0
|
| easeOutIn | () | method |
public static function easeOutIn(timeElapsed:Number, duration:Number, overshoot:Number):NumbereaseOutIn combines the motion of easeIn and easeOut by starting out decelerating towards the middle of the duration, then accelerating end.
ParameterstimeElapsed:Number — Specifies the time since the tween began in milliseconds or frames.
|
|
duration:Number — Specifies the duration of the tween, in milliseconds or frames.
|
|
overshoot:Number — The ammount to go over past the target value. The higher the number, the farther it will go.
|
Number — percentage complete - between 0.0 and 1.0 but with the overshoot, it may extend below 0.0 or above 1.0
|
| DEFAULT_OVERSHOOT | constant |
public static const DEFAULT_OVERSHOOT:Number = 1.70158The default amount of overshoot if the user doesn't specify. Rougly 10%