Ease

object Ease

Shapes for anything that travels from one value to another.

Functions

Link copied to clipboard
fun hump(t: Float): Float

A cosine hump, 0 at both ends and 1 in the middle. Softer than pingPong.

Link copied to clipboard
fun inOut(t: Float): Float
Link copied to clipboard
fun inQuad(t: Float): Float
Link copied to clipboard

Overshoots and comes back. Good for something arriving.

Link copied to clipboard

Wobbles into place. Use sparingly: it is loud.

Link copied to clipboard
Link copied to clipboard

A triangle from 0 to 1 and back, for anything that should breathe.