Loading

Pgreen


processing
Since v1.0.0
Available on all platforms
See also

Extracts the green value from a color, scaled to match current PcolorMode. The value is always returned as a double.

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

Link to original Processing doc

Signature

Examples

100 100 '2D' PGraphics 0x2A006400 //dark green, 0x2A transparent Pgreen //returns green value