Phaser API Documentation

  Version: 
setFromRGB(color)

Description:

Sets the color based on the color object given.

Parameters:

name type description
color Phaser.Types.Display.InputColorObject

An object containing r, g, b and optionally a values in the range 0 to 255.

Returns:
Description:

This Color object.

Since: 3.0.0