| Package | org.as3lib.kitchensync.easing |
| Class | public class Cubic |
Cubic produces values that would cause a moving subject to move with moderate accelleration.
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):Number
[static]
easeIn starts out slow and increases in speed towards the end of the duration.
| Cubic | ||
|
easeInOut(timeElapsed:Number, duration: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.
| Cubic | ||
|
easeOut(timeElapsed:Number, duration:Number):Number
[static]
easeOut starts out fast and decreases in speed towards the end of the duration.
| Cubic | ||
|
easeOutIn(timeElapsed:Number, duration:Number):Number
[static]
easeOutIn combines the motion of easeIn and easeOut by starting out decelerating
towards the middle of the duration, then accelerating end.
| Cubic | ||
| easeIn | () | method |
public static function easeIn(timeElapsed:Number, duration:Number):NumbereaseIn starts out slow and increases in speed towards the end of the duration.
ParameterstimeElapsed:Number — The time since the tween began in milliseconds or frames.
|
|
duration:Number — The duration of the tween, in milliseconds or frames.
|
Number — percentage complete - between 0.0 and 1.0
|
| easeInOut | () | method |
public static function easeInOut(timeElapsed:Number, duration: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.
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.
|
Number — percentage complete - between 0.0 and 1.0
|
| easeOut | () | method |
public static function easeOut(timeElapsed:Number, duration:Number):NumbereaseOut starts out fast and decreases in speed towards the end of the duration.
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.
|
Number — percentage complete - between 0.0 and 1.0
|
| easeOutIn | () | method |
public static function easeOutIn(timeElapsed:Number, duration: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.
|
Number — percentage complete - between 0.0 and 1.0
|