Color.getAlphaFloat()

<static> getAlphaFloat(color) → {number}

Given a native color value (in the format 0xAARRGGBB) this will return the Alpha component as a value between 0 and 1.

Parameters
Name Type Description
color number

In the format 0xAARRGGBB.

Returns
number -

The Alpha component of the color, will be between 0 and 1 (0 being no Alpha (opaque), 1 full Alpha (transparent)).

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

Please login to continue.