Phaser API Documentation

  Version: 
colors: Uint32Array

Description:

An array containing the color data for this Rope.

Colors should be given as numeric RGB values, such as 0xff0000. You should provide two color values for every point in the Rope, one for the top and one for the bottom of each quad.

You can modify the contents of this array directly in real-time, however, should you need to change the size of the array, then you should use the setColors method instead.

Type:
Uint32Array
Since: 3.23.0