Class zwt.animation.BasicEngine
Extends
zwt.animation.Engine.
The basic engine is a simple implementation of zwt.animation.Engine.
An animation using a basic engine will have a simple parabolic movement. You can have a look at zwt.animation.PolyEngine if you're looking for more complex behaviors.
Defined in: BasicEngine.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Construct a basic animation engine.
|
Method Attributes | Method Name and Description |
---|---|
Return the offset value.
|
|
setOffsetValue(float_offsetValue)
Set the offset value which is the distance between the maximum and the target value.
|
- Methods borrowed from class zwt.animation.Engine:
- getStepValue, getTargetValue, setTargetValue
Method Detail
{Integer}
getOffsetValue()
Return the offset value.
- Returns:
- The offset value
setOffsetValue(float_offsetValue)
Set the offset value which is the distance between the maximum and the target value. By default this is set to 0.
- Parameters:
- {Integer} float_offsetValue
- The offset value