Easing

How a value is paced between where it starts and where it ends.

The curves are quadratic, and every one of them passes through 0 at the start and 1 at the end. What separates them is the middle, so an effect reading this is only paced differently between its two ends.

Entries

Link copied to clipboard

Constant rate from end to end.

Link copied to clipboard

Starts still and accelerates into the end.

Link copied to clipboard

Starts at speed and decelerates into the end.

Link copied to clipboard

Accelerates out of the start and decelerates into the end, symmetric about the middle.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun Easing.paced(progress: Float): Float

Paces progress along this curve.

Link copied to clipboard
fun valueOf(value: String): Easing

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.