Phaser API Documentation

  Version: 
Filter
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Namespace: Easing
Phaser.Math.Easing
Source: src/math/easing/index.js (Line 7)

Namespace

Methods

<static> Linear(v)
Focus
Focus

Description:

Linear easing (no variation).

Parameters:

name type description
v number

The value to be tweened.

Returns:
Description:

The tweened value.

Type:
  • number
Examples:
Since: 3.0.0
Focus
Focus
<static> Stepped(v, [steps])
Focus
Focus

Description:

Stepped easing.

Parameters:

name type arguments Default description
v number

The value to be tweened.

steps number <optional> 1

The number of steps in the ease.

Returns:
Description:

The tweened value.

Type:
  • number
Examples:
Since: 3.0.0
Focus
Focus