Class zwt.animation.Engine
Extends
zwt.Object.
This is the base class of all animation engine.
An animation engine is used by an animation to get a value at a given animation time. It basically implements an easing function that describes the movement or the behavior of the animation.
Defined in: Engine.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Construct an animation engine.
|
Method Attributes | Method Name and Description |
---|---|
getStepValue(time)
Return the step value at the specified time.
|
|
Return the engine's target value.
|
|
setTargetValue(float_value)
Set the target value for the engine
|
Method Detail
{Float}
getStepValue(time)
Return the step value at the specified time.
- Parameters:
- {Integer} time
- The time.
- Returns:
- {Float} The step value.
{Float}
getTargetValue()
Return the engine's target value.
- Returns:
- the target value
setTargetValue(float_value)
Set the target value for the engine
- Parameters:
- {Float} float_value
- The target value to set.