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.
getAnimationFactor(): double
getAnimationFactor(): doubleReturns the animation factor
getLinearFactor(): double
getLinearFactor(): doubleReturns the animation factor without any easing
getState(): boolean
getState(): booleanReturns the current state of the animation (expanding is true, retracting is false)
setState(boolean state): Undefined
setState(boolean state): UndefinedSets the state of the animation
reset(): Undefined
reset(): UndefinedResets the animation to its original state
Last updated