SilverScreen Solid Modeler

rgb_to_color

rgb_to_color

Previous topic Next topic  

rgb_to_color

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void rgb_to_color ( int r, int g, int b, int *color )

 

int  r;           // red value

int  g;           // green value

int  b;           // blue value

int *color;       // address of integer to receive color number

 

 




Synopsis

#include "silver.h"

 

The rgb_to_color function converts a red, green and blue combination into an equivalent color number.

 

 

Parameters

r , g and b are all integers specifying relative red, green and blue values in the range of [0,255]. color is the address of an integer that is to receive the equivalent color number.

 

 

Return Value

none.

 

 

See Also

color_to_rgb