|
||
int GREEN_COLOR ( RGB rgb )
RGB rgb; // An RGB data type
|
|
|
Synopsis |
#include "silver.h"
The GREEN_COLOR macro extracts the green component from an RGB triple. It is a value between 0 and 255, where 0 represents no green contribution and 255 represents full green contribution.
|
|
Parameters |
rgb is a color from which the green component is to be extracted
|
|
Return Value |
GREEN_COLOR returns an integer value between 0 and 255
|
|
See Also |
|