Phaser API Documentation

  Version: 
<static> RandomRGB([min], [max])

Description:

Creates a new Color object where the r, g, and b values have been set to random values based on the given min max values.

Parameters:

name type arguments Default description
min number <optional> 0

The minimum value to set the random range from (between 0 and 255)

max number <optional> 255

The maximum value to set the random range from (between 0 and 255)

Returns:
Description:

A Color object.

Since: 3.0.0