kyrie / com.github.alexjlockwood.kyrie / Animation / ofArgb

ofArgb

@JvmStatic fun ofArgb(vararg values: Int): Animation<Int, Int>

Constructs and returns an Animation that animates between color 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.

@SafeVarargs @JvmStatic fun ofArgb(vararg values: Keyframe<Int>): Animation<Int, Int>

Same as ofArgb except with Keyframes instead of color values.

Parameters

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

Return
A new Animation.