Skip to content

Ease ​

Easing curves for animation and tweens.

Always available

No import needed. These names are in scope in every file.

Ease class ​

ts
class Ease

Ease.LINEAR ​

ts
static readonly LINEAR: int

No easing: constant velocity.

Ease.IN_QUAD ​

ts
static readonly IN_QUAD: int

Quadratic (t^2) ease-in: starts slow, accelerates.

Ease.OUT_QUAD ​

ts
static readonly OUT_QUAD: int

Quadratic (t^2) ease-out: starts fast, decelerates.

Ease.IN_OUT_QUAD ​

ts
static readonly IN_OUT_QUAD: int

Quadratic (t^2) ease-in-out: slow at both ends.

Ease.OUT_IN_QUAD ​

ts
static readonly OUT_IN_QUAD: int

Quadratic (t^2) composed out then in across the two halves.

Ease.IN_CUBIC ​

ts
static readonly IN_CUBIC: int

Cubic (t^3) ease-in: starts slow, accelerates.

Ease.OUT_CUBIC ​

ts
static readonly OUT_CUBIC: int

Cubic (t^3) ease-out: starts fast, decelerates.

Ease.IN_OUT_CUBIC ​

ts
static readonly IN_OUT_CUBIC: int

Cubic (t^3) ease-in-out: slow at both ends.

Ease.OUT_IN_CUBIC ​

ts
static readonly OUT_IN_CUBIC: int

Cubic (t^3) composed out then in across the two halves.

Ease.IN_QUART ​

ts
static readonly IN_QUART: int

Quartic (t^4) ease-in: starts slow, accelerates.

Ease.OUT_QUART ​

ts
static readonly OUT_QUART: int

Quartic (t^4) ease-out: starts fast, decelerates.

Ease.IN_OUT_QUART ​

ts
static readonly IN_OUT_QUART: int

Quartic (t^4) ease-in-out: slow at both ends.

Ease.OUT_IN_QUART ​

ts
static readonly OUT_IN_QUART: int

Quartic (t^4) composed out then in across the two halves.

Ease.IN_QUINT ​

ts
static readonly IN_QUINT: int

Quintic (t^5) ease-in: starts slow, accelerates.

Ease.OUT_QUINT ​

ts
static readonly OUT_QUINT: int

Quintic (t^5) ease-out: starts fast, decelerates.

Ease.IN_OUT_QUINT ​

ts
static readonly IN_OUT_QUINT: int

Quintic (t^5) ease-in-out: slow at both ends.

Ease.OUT_IN_QUINT ​

ts
static readonly OUT_IN_QUINT: int

Quintic (t^5) composed out then in across the two halves.

Ease.IN_SINE ​

ts
static readonly IN_SINE: int

Sinusoidal ease-in: starts slow, accelerates.

Ease.OUT_SINE ​

ts
static readonly OUT_SINE: int

Sinusoidal ease-out: starts fast, decelerates.

Ease.IN_OUT_SINE ​

ts
static readonly IN_OUT_SINE: int

Sinusoidal ease-in-out: slow at both ends.

Ease.OUT_IN_SINE ​

ts
static readonly OUT_IN_SINE: int

Sinusoidal composed out then in across the two halves.

Ease.IN_EXPO ​

ts
static readonly IN_EXPO: int

Exponential ease-in: starts slow, accelerates.

Ease.OUT_EXPO ​

ts
static readonly OUT_EXPO: int

Exponential ease-out: starts fast, decelerates.

Ease.IN_OUT_EXPO ​

ts
static readonly IN_OUT_EXPO: int

Exponential ease-in-out: slow at both ends.

Ease.OUT_IN_EXPO ​

ts
static readonly OUT_IN_EXPO: int

Exponential composed out then in across the two halves.

Ease.IN_CIRC ​

ts
static readonly IN_CIRC: int

Circular ease-in: starts slow, accelerates.

Ease.OUT_CIRC ​

ts
static readonly OUT_CIRC: int

Circular ease-out: starts fast, decelerates.

Ease.IN_OUT_CIRC ​

ts
static readonly IN_OUT_CIRC: int

Circular ease-in-out: slow at both ends.

Ease.OUT_IN_CIRC ​

ts
static readonly OUT_IN_CIRC: int

Circular composed out then in across the two halves.

Ease.IN_BACK ​

ts
static readonly IN_BACK: int

Overshooting back ease-in: starts slow, accelerates.

Ease.OUT_BACK ​

ts
static readonly OUT_BACK: int

Overshooting back ease-out: starts fast, decelerates.

Ease.IN_OUT_BACK ​

ts
static readonly IN_OUT_BACK: int

Overshooting back ease-in-out: slow at both ends.

Ease.OUT_IN_BACK ​

ts
static readonly OUT_IN_BACK: int

Overshooting back composed out then in across the two halves.

Ease.IN_ELASTIC ​

ts
static readonly IN_ELASTIC: int

Elastic ease-in: starts slow, accelerates.

Ease.OUT_ELASTIC ​

ts
static readonly OUT_ELASTIC: int

Elastic ease-out: starts fast, decelerates.

Ease.IN_OUT_ELASTIC ​

ts
static readonly IN_OUT_ELASTIC: int

Elastic ease-in-out: slow at both ends.

Ease.OUT_IN_ELASTIC ​

ts
static readonly OUT_IN_ELASTIC: int

Elastic composed out then in across the two halves.

Ease.IN_BOUNCE ​

ts
static readonly IN_BOUNCE: int

Bounce ease-in: starts slow, accelerates.

Ease.OUT_BOUNCE ​

ts
static readonly OUT_BOUNCE: int

Bounce ease-out: starts fast, decelerates.

Ease.IN_OUT_BOUNCE ​

ts
static readonly IN_OUT_BOUNCE: int

Bounce ease-in-out: slow at both ends.

Ease.OUT_IN_BOUNCE ​

ts
static readonly OUT_IN_BOUNCE: int

Bounce composed out then in across the two halves.

Ease.apply ​

ts
static apply(ease: int, t: float): float

The eased fraction of curve ease at t. t is clamped to 0..1, so apply(c, 0) is 0 and apply(c, 1) is 1 for every curve; back and elastic overshoot in between. An unknown id is linear.

Example

ts
console.log(Ease.apply(Ease.LINEAR, 0.5)); // 0.5

Generated from lang/ease/index.tks in the ThicketScript repository.