Ease
Easing curves for animation and tweens.
Always available
No import needed. These names are in scope in every file.
Ease class
ts
class EaseEase.LINEAR
ts
static readonly LINEAR: intNo easing: constant velocity.
Ease.IN_QUAD
ts
static readonly IN_QUAD: intQuadratic (t^2) ease-in: starts slow, accelerates.
Ease.OUT_QUAD
ts
static readonly OUT_QUAD: intQuadratic (t^2) ease-out: starts fast, decelerates.
Ease.IN_OUT_QUAD
ts
static readonly IN_OUT_QUAD: intQuadratic (t^2) ease-in-out: slow at both ends.
Ease.OUT_IN_QUAD
ts
static readonly OUT_IN_QUAD: intQuadratic (t^2) composed out then in across the two halves.
Ease.IN_CUBIC
ts
static readonly IN_CUBIC: intCubic (t^3) ease-in: starts slow, accelerates.
Ease.OUT_CUBIC
ts
static readonly OUT_CUBIC: intCubic (t^3) ease-out: starts fast, decelerates.
Ease.IN_OUT_CUBIC
ts
static readonly IN_OUT_CUBIC: intCubic (t^3) ease-in-out: slow at both ends.
Ease.OUT_IN_CUBIC
ts
static readonly OUT_IN_CUBIC: intCubic (t^3) composed out then in across the two halves.
Ease.IN_QUART
ts
static readonly IN_QUART: intQuartic (t^4) ease-in: starts slow, accelerates.
Ease.OUT_QUART
ts
static readonly OUT_QUART: intQuartic (t^4) ease-out: starts fast, decelerates.
Ease.IN_OUT_QUART
ts
static readonly IN_OUT_QUART: intQuartic (t^4) ease-in-out: slow at both ends.
Ease.OUT_IN_QUART
ts
static readonly OUT_IN_QUART: intQuartic (t^4) composed out then in across the two halves.
Ease.IN_QUINT
ts
static readonly IN_QUINT: intQuintic (t^5) ease-in: starts slow, accelerates.
Ease.OUT_QUINT
ts
static readonly OUT_QUINT: intQuintic (t^5) ease-out: starts fast, decelerates.
Ease.IN_OUT_QUINT
ts
static readonly IN_OUT_QUINT: intQuintic (t^5) ease-in-out: slow at both ends.
Ease.OUT_IN_QUINT
ts
static readonly OUT_IN_QUINT: intQuintic (t^5) composed out then in across the two halves.
Ease.IN_SINE
ts
static readonly IN_SINE: intSinusoidal ease-in: starts slow, accelerates.
Ease.OUT_SINE
ts
static readonly OUT_SINE: intSinusoidal ease-out: starts fast, decelerates.
Ease.IN_OUT_SINE
ts
static readonly IN_OUT_SINE: intSinusoidal ease-in-out: slow at both ends.
Ease.OUT_IN_SINE
ts
static readonly OUT_IN_SINE: intSinusoidal composed out then in across the two halves.
Ease.IN_EXPO
ts
static readonly IN_EXPO: intExponential ease-in: starts slow, accelerates.
Ease.OUT_EXPO
ts
static readonly OUT_EXPO: intExponential ease-out: starts fast, decelerates.
Ease.IN_OUT_EXPO
ts
static readonly IN_OUT_EXPO: intExponential ease-in-out: slow at both ends.
Ease.OUT_IN_EXPO
ts
static readonly OUT_IN_EXPO: intExponential composed out then in across the two halves.
Ease.IN_CIRC
ts
static readonly IN_CIRC: intCircular ease-in: starts slow, accelerates.
Ease.OUT_CIRC
ts
static readonly OUT_CIRC: intCircular ease-out: starts fast, decelerates.
Ease.IN_OUT_CIRC
ts
static readonly IN_OUT_CIRC: intCircular ease-in-out: slow at both ends.
Ease.OUT_IN_CIRC
ts
static readonly OUT_IN_CIRC: intCircular composed out then in across the two halves.
Ease.IN_BACK
ts
static readonly IN_BACK: intOvershooting back ease-in: starts slow, accelerates.
Ease.OUT_BACK
ts
static readonly OUT_BACK: intOvershooting back ease-out: starts fast, decelerates.
Ease.IN_OUT_BACK
ts
static readonly IN_OUT_BACK: intOvershooting back ease-in-out: slow at both ends.
Ease.OUT_IN_BACK
ts
static readonly OUT_IN_BACK: intOvershooting back composed out then in across the two halves.
Ease.IN_ELASTIC
ts
static readonly IN_ELASTIC: intElastic ease-in: starts slow, accelerates.
Ease.OUT_ELASTIC
ts
static readonly OUT_ELASTIC: intElastic ease-out: starts fast, decelerates.
Ease.IN_OUT_ELASTIC
ts
static readonly IN_OUT_ELASTIC: intElastic ease-in-out: slow at both ends.
Ease.OUT_IN_ELASTIC
ts
static readonly OUT_IN_ELASTIC: intElastic composed out then in across the two halves.
Ease.IN_BOUNCE
ts
static readonly IN_BOUNCE: intBounce ease-in: starts slow, accelerates.
Ease.OUT_BOUNCE
ts
static readonly OUT_BOUNCE: intBounce ease-out: starts fast, decelerates.
Ease.IN_OUT_BOUNCE
ts
static readonly IN_OUT_BOUNCE: intBounce ease-in-out: slow at both ends.
Ease.OUT_IN_BOUNCE
ts
static readonly OUT_IN_BOUNCE: intBounce composed out then in across the two halves.
Ease.apply
ts
static apply(ease: int, t: float): floatThe 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.5Generated from lang/ease/index.tks in the ThicketScript repository.