Phaser.Math.Easing.Elastic

Scope: static

Source: src/math/easing/elastic/index.js#L7

Methods:

Public Members

In

<static> In(v, [amplitude], [period])

Description:

Elastic ease-in.

Parameters:

nametypeoptionaldefaultdescription
vnumberNoThe value to be tweened.
amplitudenumberYes0.1The amplitude of the elastic ease.
periodnumberYes0.1Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.

Returns: number - The tweened value.

Source: src/math/easing/elastic/In.js#L7
Since: 3.0.0


InOut

<static> InOut(v, [amplitude], [period])

Description:

Elastic ease-in/out.

Parameters:

nametypeoptionaldefaultdescription
vnumberNoThe value to be tweened.
amplitudenumberYes0.1The amplitude of the elastic ease.
periodnumberYes0.1Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.

Returns: number - The tweened value.

Source: src/math/easing/elastic/InOut.js#L7
Since: 3.0.0


Out

<static> Out(v, [amplitude], [period])

Description:

Elastic ease-out.

Parameters:

nametypeoptionaldefaultdescription
vnumberNoThe value to be tweened.
amplitudenumberYes0.1The amplitude of the elastic ease.
periodnumberYes0.1Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.

Returns: number - The tweened value.

Source: src/math/easing/elastic/Out.js#L7
Since: 3.0.0


Private Members

Updated on