Class: Phaser.Easing.Quadratic
Constructor
new Quadratic()
Quadratic easing.
- Source code: tween/Easing.js (Line 43)
Public Methods
- Source code: tween/Easing.js (Line 45)
- Source code: tween/Easing.js (Line 71)
- Source code: tween/Easing.js (Line 58)
In(k) → {number}
Ease-in.
Parameters
Name | Type | Description |
---|---|---|
k | number | The value to be tweened. |
Returns
number -
k^2.
InOut(k) → {number}
Ease-in/out.
Parameters
Name | Type | Description |
---|---|---|
k | number | The value to be tweened. |
Returns
number -
The tweened value.
Out(k) → {number}
Ease-out.
Parameters
Name | Type | Description |
---|---|---|
k | number | The value to be tweened. |
Returns
number -
k* (2-k).
© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/Phaser.Easing.Quadratic.html