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