Skip to main content
Version: Phaser v3.90.0

Phaser.Math.Easing

Scope: static

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

Static functions

Static functions

Linear

<static> Linear(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

<static> Stepped(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