Namespace: Elastic

Phaser.Math.Easing. Elastic

Methods


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

Elastic ease-in.

Parameters:
Name Type Argument Default Description
v number

The value to be tweened.

amplitude number <optional>
0.1

The amplitude of the elastic ease.

period number <optional>
0.1

Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.

Since: 3.0.0
Source: src/math/easing/elastic/In.js (Line 7)
Returns:

The tweened value.

Type
number

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

Elastic ease-in/out.

Parameters:
Name Type Argument Default Description
v number

The value to be tweened.

amplitude number <optional>
0.1

The amplitude of the elastic ease.

period number <optional>
0.1

Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.

Since: 3.0.0
Source: src/math/easing/elastic/InOut.js (Line 7)
Returns:

The tweened value.

Type
number

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

Elastic ease-out.

Parameters:
Name Type Argument Default Description
v number

The value to be tweened.

amplitude number <optional>
0.1

The amplitude of the elastic ease.

period number <optional>
0.1

Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.

Since: 3.0.0
Source: src/math/easing/elastic/Out.js (Line 7)
Returns:

The tweened value.

Type
number