green()
Color / Creating & ReadingDescription
Extracts the green value from a color.
Syntax
float green(color c)
Parameters
| Name | Type | Description |
|---|---|---|
| c | color | any color value |
Returns
floatRelated
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; }