Phaser API Documentation

  Version: 
<static> ColorWithColor(color1, color2, [length], [index])

Description:

Interpolates between the two given color objects over the length supplied.

Parameters:

name type arguments Default description
color1 Phaser.Display.Color

The first Color object.

color2 Phaser.Display.Color

The second Color object.

length number <optional> 100

Distance to interpolate over.

index number <optional> 0

Index to start from.

Returns:
Description:

An object containing the interpolated color values.

Since: 3.0.0