SilverScreen Solid Modeler

RED_COLOR

RED_COLOR

Previous topic Next topic  

RED_COLOR

Previous topic Next topic JavaScript is required for the print function  

 

SilverScreenAPI

 

int RED_COLOR ( RGB rgb )

 

RGB rgb;   // An RGB data type

 

 

 




Synopsis

#include "silver.h"

 

The RED_COLOR macro extracts the red component from an RGB triple. It is a value between 0 and 255, where 0 represents no red contribution and 255 represents full red contribution.

 

 

Parameters

rgb is a value from which the red component is to be extracted

 

 

Return Value

RED_COLOR returns an integer value between 0 and 255

 

 

See Also

MAKE_RGB, BLUE_COLOR, GREEN_COLOR