green()

Color / Creating & Reading

Description

Extracts the green value from a color.

Syntax

float green(color c)

Parameters

NameTypeDescription
ccolorany color value

Returns

float

Related

Under the Hood

From Processing.h:

float green(color c);

Under the Hood

From Processing.cpp:

float PApplet::green(color c) { unsigned int v=c.value; return (v>>8&0xFF)/255.0f*colorMaxS; }