Interpolates between the two given color objects over the length supplied.
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. |
An object containing the interpolated color values.