Phaser API Documentation

  Version: 
<static> Linear(v, k)

Description:

A linear interpolation method.

Parameters:

name type description
v Array.<number>

The input array of values to interpolate between.

k number

The percentage of interpolation, between 0 and 1.

Returns:
Description:

The interpolated value.

Type:
  • number
Examples:
Since: 3.0.0