Loading

Palpha

processing

Extracts the alpha value from a color.

The Palpha function is easy to use and understand, but it is slower than bit shifting...

Link to original Processing doc

Palpha is available since version 1.0.0.

See also

Signatures

Examples

100 100 '2D' PGraphics 0x2Aff0000 //red, 0x2A transparent Palpha //returns alpha value