@JvmStatic fun ofFloatArray(vararg values: FloatArray): Animation<FloatArray, FloatArray>
Constructs and returns an Animation that animates between float[]
values. A single
value implies that the value is the one being animated to, in which case the start value will
be derived from the property being animated and the target object when the animation is
started. Two values imply starting and ending values. More than two values imply a starting
value, values to animate through along the way, and an ending value (these values will be
distributed evenly across the duration of the animation).
values
- A set of values that the animation will animate through over time. The float[]
values should all have the same length.
Return
A new Animation.
@JvmStatic @SafeVarargs fun ofFloatArray(vararg values: Keyframe<FloatArray>): Animation<FloatArray, FloatArray>
Same as ofFloatArray except with Keyframes instead of float[]
values.
values
- A set of Keyframes that the animation will animate through over time.
Return
A new Animation.