DecelerateInterpolator
open class DecelerateInterpolator : Interpolator
An interpolator where the rate of change starts out quickly and and then decelerates.
Summary
Public constructors |
|
Constructor
|
|
Public methods |
open Float |
|
Public constructors
<init>
DecelerateInterpolator()
<init>
DecelerateInterpolator(factor: Float)
Constructor
Parameters |
factor |
Float: Degree to which the animation should be eased. Setting factor to 1.0f produces an upside-down y=x^2 parabola. Increasing factor above 1.0f makes exaggerates the ease-out effect (i.e., it starts even faster and ends evens slower) |
Public methods
getInterpolation
@FloatRange(0, 1) open fun getInterpolation(@FloatRange(0, 1) input: Float): Float