Class: Phaser.Easing.Sinusoidal

Constructor

new Sinusoidal()

Sinusoidal easing.

Source code: tween/Easing.js (Line 239)

Public Methods

In(k) → {number}

Sinusoidal ease-in.

Parameters
Name Type Description
k number

The value to be tweened.

Returns
number -

The tweened value.

Source code: tween/Easing.js (Line 241)

InOut(k) → {number}

Sinusoidal 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 271)

Out(k) → {number}

Sinusoidal ease-out.

Parameters
Name Type Description
k number

The value to be tweened.

Returns
number -

The tweened value.

Source code: tween/Easing.js (Line 256)

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