Kraken Logo

Kraken Engine

DocumentationGuidesShowcaseCommunity
Ctrl
K
Navigating the Docs
Building Docs
Overview
Camera
Color
Draw
Ease
Event
Fx
Gamepad
Input
Log
Math
Mixer
Mouse
Physics
Pixel Array
Renderer
Shaders
Time
Transform
Ui
Viewport
Window

Built bydurkisneer1.Kraken Engine is open source and available onGitHub.

  1. Docs
  2. Functions
  3. Ease

Ease

Easing functions for animations.


Linear

linear(t: float) → floatlinear(t: float) → float

Linear easing.

Args

  • t : Normalized time (0.0 to 1.0). Returns

float : Eased result.

In Quad

in_quad(t: float) → floatin_quad(t: float) → float

Quadratic easing in (slow start).

Args

  • t : Normalized time. Returns

float : Eased result.

Out Quad

out_quad(t: float) → floatout_quad(t: float) → float

Quadratic easing out (fast start).

Args

  • t : Normalized time. Returns

float : Eased result.

In Out Quad

in_out_quad(t: float) → floatin_out_quad(t: float) → float

Quadratic easing in and out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Cubic

in_cubic(t: float) → floatin_cubic(t: float) → float

Cubic easing in (very slow start).

Args

  • t : Normalized time. Returns

float : Eased result.

Out Cubic

out_cubic(t: float) → floatout_cubic(t: float) → float

Cubic easing out (fast then smooth).

Args

  • t : Normalized time. Returns

float : Eased result.

In Out Cubic

in_out_cubic(t: float) → floatin_out_cubic(t: float) → float

Cubic easing in and out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Quart

in_quart(t: float) → floatin_quart(t: float) → float

Quartic easing in.

Args

  • t : Normalized time. Returns

float : Eased result.

Out Quart

out_quart(t: float) → floatout_quart(t: float) → float

Quartic easing out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Out Quart

in_out_quart(t: float) → floatin_out_quart(t: float) → float

Quartic easing in and out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Quint

in_quint(t: float) → floatin_quint(t: float) → float

Quintic easing in.

Args

  • t : Normalized time. Returns

float : Eased result.

Out Quint

out_quint(t: float) → floatout_quint(t: float) → float

Quintic easing out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Out Quint

in_out_quint(t: float) → floatin_out_quint(t: float) → float

Quintic easing in and out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Sin

in_sin(t: float) → floatin_sin(t: float) → float

Sinusoidal easing in.

Args

  • t : Normalized time. Returns

float : Eased result.

Out Sin

out_sin(t: float) → floatout_sin(t: float) → float

Sinusoidal easing out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Out Sin

in_out_sin(t: float) → floatin_out_sin(t: float) → float

Sinusoidal easing in and out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Circ

in_circ(t: float) → floatin_circ(t: float) → float

Circular easing in.

Args

  • t : Normalized time. Returns

float : Eased result.

Out Circ

out_circ(t: float) → floatout_circ(t: float) → float

Circular easing out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Out Circ

in_out_circ(t: float) → floatin_out_circ(t: float) → float

Circular easing in and out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Expo

in_expo(t: float) → floatin_expo(t: float) → float

Exponential easing in.

Args

  • t : Normalized time. Returns

float : Eased result.

Out Expo

out_expo(t: float) → floatout_expo(t: float) → float

Exponential easing out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Out Expo

in_out_expo(t: float) → floatin_out_expo(t: float) → float

Exponential easing in and out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Elastic

in_elastic(t: float) → floatin_elastic(t: float) → float

Elastic easing in (springy start).

Args

  • t : Normalized time. Returns

float : Eased result.

Out Elastic

out_elastic(t: float) → floatout_elastic(t: float) → float

Elastic easing out (springy end).

Args

  • t : Normalized time. Returns

float : Eased result.

In Out Elastic

in_out_elastic(t: float) → floatin_out_elastic(t: float) → float

Elastic easing in and out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Back

in_back(t: float) → floatin_back(t: float) → float

Back easing in (overshoot at start).

Args

  • t : Normalized time. Returns

float : Eased result.

Out Back

out_back(t: float) → floatout_back(t: float) → float

Back easing out (overshoot at end).

Args

  • t : Normalized time. Returns

float : Eased result.

In Out Back

in_out_back(t: float) → floatin_out_back(t: float) → float

Back easing in and out.

Args

  • t : Normalized time. Returns

float : Eased result.

In Bounce

in_bounce(t: float) → floatin_bounce(t: float) → float

Bounce easing in (bounces toward target).

Args

  • t : Normalized time. Returns

float : Eased result.

Out Bounce

out_bounce(t: float) → floatout_bounce(t: float) → float

Bounce easing out (bounces after start).

Args

  • t : Normalized time. Returns

float : Eased result.

In Out Bounce

in_out_bounce(t: float) → floatin_out_bounce(t: float) → float

Bounce easing in and out.

Args

  • t : Normalized time. Returns

float : Eased result.

PreviousDraw
NextEvent

On this page

LinearIn QuadOut QuadIn Out QuadIn CubicOut CubicIn Out CubicIn QuartOut QuartIn Out QuartIn QuintOut QuintIn Out QuintIn SinOut SinIn Out SinIn CircOut CircIn Out CircIn ExpoOut ExpoIn Out ExpoIn ElasticOut ElasticIn Out ElasticIn BackOut BackIn Out BackIn BounceOut BounceIn Out Bounce