Animation
An animation object
Last updated
An animation object
Last updated
Initialise a new Animation object by simply calling new Animation(duration, initialState, easing)
constructor Animation(float duration, boolean initialState, String easing)
Creates an animation with the given parameters.
getAnimationFactor(): double
Returns the animation factor
getLinearFactor(): double
Returns the animation factor without any easing
getState(): boolean
Returns the current state of the animation (expanding is true, retracting is false)
setState(boolean state): Undefined
Sets the state of the animation
reset(): Undefined
Resets the animation to its original state