class Easing


Supported Easing curves.

 

You may define your own Cubic-bezier easing curve with cubic.

Summary

Public companion functions

Easing
cubic(x1: Float, y1: Float, x2: Float, y2: Float)

Defines a Cubic-Bezier curve where the points P1 and P2 are at the given coordinate ratios.

Public companion properties

Easing

Acceleration Easing curve, also known as: Ease in.

Easing

Anticipate is an Easing curve with a small negative overshoot near the start of the motion.

Easing

Deceleration Easing curve, also known as: Ease out.

Easing

Linear Easing curve.

Easing

Overshoot is an Easing curve with a small positive overshoot near the end of the motion.

Easing

Standard Easing curve, also known as: Ease in, ease out.

Public properties

open String

Public companion functions

cubic

Added in 1.1.0-alpha13
fun cubic(x1: Float, y1: Float, x2: Float, y2: Float): Easing

Defines a Cubic-Bezier curve where the points P1 and P2 are at the given coordinate ratios.

P1 and P2 are typically defined within (0f, 0f) and (1f, 1f), but may be assigned beyond these values for overshoot curves.

Parameters
x1: Float

X-axis value for P1. Value is typically defined within 0f-1f.

y1: Float

Y-axis value for P1. Value is typically defined within 0f-1f.

x2: Float

X-axis value for P2. Value is typically defined within 0f-1f.

y2: Float

Y-axis value for P2. Value is typically defined within 0f-1f.

Public companion properties

Accelerate

Added in 1.1.0-alpha13
val AccelerateEasing

Acceleration Easing curve, also known as: Ease in.

 

Defined as cubic(0.4f, 0.05f, 0.8f, 0.7f).

Anticipate

Added in 1.1.0-alpha13
val AnticipateEasing

Anticipate is an Easing curve with a small negative overshoot near the start of the motion.

 

Defined as cubic(0.36f, 0f, 0.66f, -0.56f).

Decelerate

Added in 1.1.0-alpha13
val DecelerateEasing

Deceleration Easing curve, also known as: Ease out.

 

Defined as cubic(0.0f, 0.0f, 0.2f, 0.95f).

Linear

Added in 1.1.0-alpha13
val LinearEasing

Linear Easing curve.

 

Defined as cubic(1f, 1f, 0f, 0f).

Overshoot

Added in 1.1.0-alpha13
val OvershootEasing

Overshoot is an Easing curve with a small positive overshoot near the end of the motion.

 

Defined as cubic(0.34f, 1.56f, 0.64f, 1f).

Standard

Added in 1.1.0-alpha13
val StandardEasing

Standard Easing curve, also known as: Ease in, ease out.

 

Defined as cubic(0.4f, 0.0f, 0.2f, 1f).

Public properties

name

Added in 1.1.0-alpha13
open val nameString