Interface Tweenable
public interface Tweenable
The Tweenable interface allows modifying an object's attributes smoothly over
time using
Tween instances managed by the TweenEngine.-
Method Summary
Modifier and TypeMethodDescriptiondefault float[]getTweenValues(TweenType tweenType) Gets one or many values from the target object associated to the given tween type.default voidsetTweenValues(TweenType tweenType, float[] newValues) This method is called in a Tween's update() method to set the new interpolated values.
-
Method Details
-
getTweenValues
Gets one or many values from the target object associated to the given tween type. It is used by the Tween Engine to determine starting values.- Parameters:
tweenType- The tween type of this interpolation, determining which values are modified.- Returns:
- The array of current tween values.
-
setTweenValues
This method is called in a Tween's update() method to set the new interpolated values.- Parameters:
tweenType- The tween type of this interpolation, determining which values are modified.newValues- The new values determined by the tween equation.
-