| Package | org.as3lib.kitchensync.easing |
| Class | public class Linear |
Linear produces values that increase in a linear fashion without any accelleration. It simply finds
the percentage complete from the time elapsed to the duration. Since there is no variation in the values
produced, there is no need for multiple easing functions and only ease() is provided.
Visually, this class produces values that cause a subject to move steadily from one point to another.
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 | ||
|---|---|---|---|
|
ease(timeElapsed:Number, duration:Number):Number
[static]
Computes the percentage finished between the time elapsed and the duration.
| Linear | ||
| ease | () | method |
public static function ease(timeElapsed:Number, duration:Number):NumberComputes the percentage finished between the time elapsed and the duration. No transformations are made.
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
|