SilverScreen Solid Modeler

GREEN_COLOR

GREEN_COLOR

Previous topic Next topic  

GREEN_COLOR

Previous topic Next topic JavaScript is required for the print function  

 

SilverScreenAPI

 

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

MAKE_RGB, RED_COLOR, BLUE_COLOR