Phaser API Documentation

  Version: 
<static> IntegerToRGB(input)

Description:

Return the component parts of a color as an Object with the properties alpha, red, green, blue.

Alpha will only be set if it exists in the given color (0xAARRGGBB)

Parameters:

name type description
input number

The color value to convert into a Color object.

Returns:
Description:

An object with the red, green and blue values set in the r, g and b properties.

Since: 3.0.0