Class: Quadratic

Phaser.Easing. Quadratic

new Quadratic()

Quadratic easing.

Source:
src/tween/Easing.js line 43

Methods

In(k)

Ease-in.

Parameters:
Name Type Description
k number

The value to be tweened.

Source:
src/tween/Easing.js line 45
Returns:

k^2.

Type
number

InOut(k)

Ease-in/out.

Parameters:
Name Type Description
k number

The value to be tweened.

Source:
src/tween/Easing.js line 71
Returns:

The tweened value.

Type
number

Out(k)

Ease-out.

Parameters:
Name Type Description
k number

The value to be tweened.

Source:
src/tween/Easing.js line 58
Returns:

k* (2-k).

Type
number

phaser-ce@2.9.2 is on GitHub and NPM

Documentation generated by JSDoc 3.5.4 on 2017-11-09 using Tomorrow.