These docs are for Phaser 2.6.2 Phaser 3 docs can be found on GitHub pages.
Phaser CE docs can be found on the Phaser CE Documentation site.

Constructor

Phaser.Easing. Quadratic

new Quadratic()

Quadratic easing.

Source code: tween/Easing.js (Line 43)

Public Methods

In(k) → {number}

Ease-in.

Parameters
Name Type Description
k number

The value to be tweened.

Returns
number -

k^2.

Source code: tween/Easing.js (Line 45)

InOut(k) → {number}

Ease-in/out.

Parameters
Name Type Description
k number

The value to be tweened.

Returns
number -

The tweened value.

Source code: tween/Easing.js (Line 71)

Out(k) → {number}

Ease-out.

Parameters
Name Type Description
k number

The value to be tweened.

Returns
number -

k* (2-k).

Source code: tween/Easing.js (Line 58)