kyrie / com.github.alexjlockwood.kyrie / Animation / ofFloat

ofFloat

@JvmStatic fun ofFloat(vararg values: Float): Animation<Float, Float>

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).

Parameters

values - A set of values that the animation will animate through over time.

Return
A new Animation.

@JvmStatic @SafeVarargs fun ofFloat(vararg values: Keyframe<Float>): Animation<Float, Float>

Same as ofFloat except with Keyframes instead of float values.

Parameters

values - A set of Keyframes that the animation will animate through over time.

Return
A new Animation.