Packageorg.as3lib.kitchensync.easing
Classpublic class Elastic



Public Methods
 MethodDefined by
  
easeIn(timeElapsed:Number, duration:Number, amplitude:Number = 0, period:Number = 0):Number
[static] easeIn starts out slow and increases in speed towards the end of the duration.
Elastic
  
easeInOut(timeElapsed:Number, duration:Number, amplitude:Number = 0, period:Number = 0):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.
Elastic
  
easeOut(timeElapsed:Number, duration:Number, amplitude:Number = 0, period:Number = 0):Number
[static] easeOut starts out fast and decreases in speed towards the end of the duration.
Elastic
  
easeOutIn(timeElapsed:Number, duration:Number, amplitude:Number = 0, period:Number = 0):Number
[static] easeOutIn combines the motion of easeIn and easeOut by starting out decelerating towards the middle of the duration, then accelerating end.
Elastic
Method detail
easeIn()method
public static function easeIn(timeElapsed:Number, duration:Number, amplitude:Number = 0, period:Number = 0):Number

easeIn starts out slow and increases in speed towards the end of the duration. The values wobble around the starting point before going towards the end point.

Parameters
timeElapsed:Number — The time since the tween began in milliseconds or frames.
 
duration:Number — The duration of the tween, in milliseconds or frames.
 
amplitude:Number (default = 0) — The aplitude of the sine wave. Low numbers are less extreme than high numbers.
 
period:Number (default = 0) — The period of the sine wave. Low numbers are wobbly, high numbers are smooth.

Returns
Number — percentage complete - between 0.0 and 1.0 but it may extend below 0.0 or above 1.0

See also

easeInOut()method 
public static function easeInOut(timeElapsed:Number, duration:Number, amplitude:Number = 0, period:Number = 0):Number

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. The values wobble around the starting point (0.0) then go to the the end point (1.0) and wobble there as well.

Parameters
timeElapsed:Number — The time since the tween began in milliseconds or frames.
 
duration:Number — The duration of the tween, in milliseconds or frames.
 
amplitude:Number (default = 0) — The aplitude of the sine wave. Low numbers are less extreme than high numbers.
 
period:Number (default = 0) — The period of the sine wave. Low numbers are wobbly, high numbers are smooth.

Returns
Number — percentage complete - between 0.0 and 1.0 but it may extend below 0.0 or above 1.0
easeOut()method 
public static function easeOut(timeElapsed:Number, duration:Number, amplitude:Number = 0, period:Number = 0):Number

easeOut starts out fast and decreases in speed towards the end of the duration. The values wobble around the endpoint after reaching it.

Parameters
timeElapsed:Number — The time since the tween began in milliseconds or frames.
 
duration:Number — The duration of the tween, in milliseconds or frames.
 
amplitude:Number (default = 0) — The aplitude of the sine wave. Low numbers are less extreme than high numbers.
 
period:Number (default = 0) — The period of the sine wave. Low numbers are wobbly, high numbers are smooth.

Returns
Number — percentage complete - between 0.0 and 1.0 but it may extend below 0.0 or above 1.0
easeOutIn()method 
public static function easeOutIn(timeElapsed:Number, duration:Number, amplitude:Number = 0, period:Number = 0):Number

easeOutIn combines the motion of easeIn and easeOut by starting out decelerating towards the middle of the duration, then accelerating end.

Parameters
timeElapsed:Number — The time since the tween began in milliseconds or frames.
 
duration:Number — The duration of the tween, in milliseconds or frames.
 
amplitude:Number (default = 0) — The aplitude of the sine wave. Low numbers are less extreme than high numbers.
 
period:Number (default = 0) — The period of the sine wave. Low numbers are wobbly, high numbers are smooth.

Returns
Number — percentage complete - between 0.0 and 1.0 but it may extend below 0.0 or above 1.0