Color.toRGBA()

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

A utility to convert RGBA components to a 32 bit integer in RRGGBBAA 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

Author:
  • Matt DesLauriers (@mattdesl)
Source code: utils/Color.js (Line 126)
doc_phaser
2017-02-14 10:42:13
Comments
Leave a Comment

Please login to continue.