Phaser API Documentation

  Version: 
<static> GetEaseFunction(ease, [easeParams])

Description:

This internal function is used to return the correct ease function for a Tween.

It can take a variety of input, including an EaseMap based string, or a custom function.

Parameters:

name type arguments description
ease string | function

The ease to find. This can be either a string from the EaseMap, or a custom function.

easeParams Array.<number> <optional>

An optional array of ease parameters to go with the ease.

Returns:
Description:

The ease function.

Type:
  • function
Examples:
Since: 3.0.0