Class: Phaser.Easing.Elastic
Constructor
new Elastic()
Elastic easing.
- Source code: tween/Easing.js (Line 393)
Public Methods
- Source code: tween/Easing.js (Line 395)
- Source code: tween/Easing.js (Line 431)
- Source code: tween/Easing.js (Line 413)
In(k) → {number}
Elastic ease-in.
Parameters
Name | Type | Description |
---|---|---|
k | number | The value to be tweened. |
Returns
number -
The tweened value.
InOut(k) → {number}
Elastic ease-in/out.
Parameters
Name | Type | Description |
---|---|---|
k | number | The value to be tweened. |
Returns
number -
The tweened value.
Out(k) → {number}
Elastic 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.Elastic.html