Phaser API Documentation

  Version: 
<static> getFloatsFromUintRGB(rgb)

Description:

Unpacks a Uint24 RGB into an array of floats of ranges of 0.0 and 1.0

Parameters:

name type description
rgb number

RGB packed as a Uint24

Returns:
Description:

Array of floats representing each component as a float

Type:
  • array
Since: 3.0.0