Phaser.Math.Easing.Bounce
Scope: static
Static functions
In
<static> In(v)
Description:
Applies a bounce easing to the start of the tween. The eased value will 'bounce' several times near the origin before accelerating toward the target, simulating the effect of a ball bouncing as it begins to move. This is the ease-in variant, meaning the bounce effect occurs at the beginning of the transition rather than the end.
Parameters:
| name | type | optional | description |
|---|---|---|---|
| v | number | No | The value to be eased, in the range 0 to 1. |
Returns: number - The eased value, in the range 0 to 1.
Source: src/math/easing/bounce/In.js#L7
Since: 3.0.0
InOut
<static> InOut(v)
Description:
Applies a Bounce ease-in/out effect to the given value. This combines both the ease-in and ease-out bounce effects, producing a bouncing animation at the start and end of the tween. The input value should be in the range 0 to 1, where 0 is the start and 1 is the end of the tween.
Parameters:
| name | type | optional | description |
|---|---|---|---|
| v | number | No | The value to be eased. |
Returns: number - The eased value.
Source: src/math/easing/bounce/InOut.js#L7
Since: 3.0.0
Out
<static> Out(v)
Description:
Applies a bounce ease-out effect to the given value. The motion starts fast and decelerates toward the end with a bouncing effect, simulating a ball landing and bouncing to a stop. The bounce is achieved through four piecewise quadratic segments that produce three diminishing bounces before settling.
Parameters:
| name | type | optional | description |
|---|---|---|---|
| v | number | No | The value to be eased. |
Returns: number - The eased value.
Source: src/math/easing/bounce/Out.js#L7
Since: 3.0.0