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:
| name | type | optional | description |
|---|---|---|---|
| v | number | No | The value to be eased. |
Returns: number - The eased value.
Source: src/math/easing/linear/Linear.js#L7
Since: 3.0.0
Stepped
<static> Stepped(v, [steps])
Description:
A stepped easing function that quantizes the input value into a discrete number of evenly-spaced steps, creating a staircase progression rather than a smooth curve. The output jumps instantly between step values instead of interpolating, which is useful for frame-by-frame animations, grid-snapped movement, or any effect that should advance in distinct increments.
Parameters:
| name | type | optional | default | description |
|---|---|---|---|---|
| v | number | No | The value to be eased. | |
| steps | number | Yes | 1 | The number of steps in the ease. |
Returns: number - The eased value.
Source: src/math/easing/stepped/Stepped.js#L7
Since: 3.0.0