Color.toABGR()

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

Converts RGBA components to a 32 bit integer in AABBGGRR format.

Parameters
Name Type Description
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.

a number

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

Returns
number -

A RGBA-packed 32 bit integer

Source code: utils/Color.js (Line 144)
doc_phaser
2017-02-14 10:42:13
Comments
Leave a Comment

Please login to continue.