Loading

Pgreen

processing

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

Pgreen is available since version 1.0.0.

See also

Signatures

Examples

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