Phaser API Documentation

  Version: 
<static> GetInterpolationFunction(interpolation)

Description:

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

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

Parameters:

name type description
interpolation string | function | null

The interpolation function to find. This can be either a string, or a custom function, or null.

Returns:
Description:

The interpolation function to use, or null.

Type:
  • function