Class: Phaser.Easing.Cubic
Constructor
new Cubic()
Cubic easing.
- Source code: tween/Easing.js (Line 92)
Public Methods
- Source code: tween/Easing.js (Line 94)
- Source code: tween/Easing.js (Line 120)
- Source code: tween/Easing.js (Line 107)
In(k) → {number}
Cubic ease-in.
Parameters
Name | Type | Description |
---|---|---|
k | number | The value to be tweened. |
Returns
number -
The tweened value.
InOut(k) → {number}
Cubic ease-in/out.
Parameters
Name | Type | Description |
---|---|---|
k | number | The value to be tweened. |
Returns
number -
The tweened value.
Out(k) → {number}
Cubic ease-out.
Parameters
Name | Type | Description |
---|---|---|
k | number | The value to be tweened. |
Returns
number -
The tweened value.
© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/Phaser.Easing.Cubic.html