🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

progress

The fraction of the offset between from and to, as a fraction between [0f..1f], or 1f if from is equal to to.

progress

Source set: Common
public fun progress(from: T, to: T): Float

The fraction of the offset between from and to, as a fraction between 0f..1f, or 1f if from is equal to to.

Parameters

from The starting value used to calculate the distance
to The end value used to calculate the distance

Content updated: