Phaser API Documentation

  Version: 
random([min], [max])

Description:

Sets this Color object to be a random color between the min and max values given.

Parameters:

name type arguments Default description
min number <optional> 0

The minimum random color value. Between 0 and 255.

max number <optional> 255

The maximum random color value. Between 0 and 255.

Returns:
Description:

This Color object.

Since: 3.13.0