API Reference › Ease › Ease.in
method

Ease.in

Ease.in(t) -> fixed

Returns t * t — motion that starts slow and speeds up. Feed the result to Math.lerp as the blend amount so a value accelerates into its target. The input t is expected in 0.0..1.0.

Example

program Demo {
  handler Step phase Update {
    let x = Math.lerp(start_x, end_x, Ease.in(progress))
  }
}
← All symbols