Color.getColor32()

<static> getColor32(a, r, g, b) → {number}

Given an alpha and 3 color values this will return an integer representation of it.

Parameters
Name Type Description
a number

The alpha color component, in the range 0 - 255.

r number

The red color component, in the range 0 - 255.

g number

The green color component, in the range 0 - 255.

b number

The blue color component, in the range 0 - 255.

Returns
number -

A native color value integer (format: 0xAARRGGBB).

Source code: utils/Color.js (Line 483)
doc_phaser
2017-02-14 10:41:59
Comments
Leave a Comment

Please login to continue.