You’re reading the docs for Phaser v3.90.0. The latest is Phaser v4.1.0.

Phaser.Math.Easing

Scope: static

Source: src/math/easing/index.js#L7

Static functions

Static functions

Linear

staticLinear(v)

Description:

Linear easing (no variation).

Parameters:

nametypeoptionaldescription
vnumberNoThe value to be tweened.

Returns: number - The tweened value.

Source: src/math/easing/linear/Linear.js#L7
Since: 3.0.0


Stepped

staticStepped(v, [steps])

Description:

Stepped easing.

Parameters:

nametypeoptionaldefaultdescription
vnumberNoThe value to be tweened.
stepsnumberYes1The number of steps in the ease.

Returns: number - The tweened value.

Source: src/math/easing/stepped/Stepped.js#L7
Since: 3.0.0