These docs are for an outdated version of Phaser The documentation on this page is for Phaser 2.6.2. The latest release is 2.9.1.

Constructor

Phaser.Easing. Cubic

new Cubic()

Cubic easing.

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

Public Methods

In(k) → {number}

Cubic ease-in.

Parameters
Name Type Description
k number

The value to be tweened.

Returns
number -

The tweened value.

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

InOut(k) → {number}

Cubic 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 120)

Out(k) → {number}

Cubic ease-out.

Parameters
Name Type Description
k number

The value to be tweened.

Returns
number -

The tweened value.

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