kyrie / com.github.alexjlockwood.kyrie / Keyframe / fraction

fraction

var fraction: Float

Gets the time for this Keyframe, as a fraction of the overall animation duration.

Return
The time associated with this Keyframe, as a fraction of the overall animation duration. This should be a value between 0 and 1.

Getter

Gets the time for this Keyframe, as a fraction of the overall animation duration.

Getter Return
The time associated with this Keyframe, as a fraction of the overall animation duration. This should be a value between 0 and 1.

fun fraction(fraction: Float): Keyframe<T>

Sets the time for this Keyframe, as a fraction of the overall animation duration.

Parameters

fraction - The time associated with this Keyframe, as a fraction of the overall animation duration. This should be a value between 0 and 1.

Return
This Keyframe object (to allow for chaining of calls to setter methods).