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)

Creates an animation with the given parameters.

See this file for a list of easings

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

Last updated