Class: Phaser.Easing.Quadratic

Constructor

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)

© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/Phaser.Easing.Quadratic.html