|
bx_color bx_rgb_to_color |
( |
unsigned char |
r, |
|
|
unsigned char |
g, |
|
|
unsigned char |
b | |
|
) |
| | |
Returns the color suported by the system that best approximates a given RGB (Red,Green,Blue) triplet. The three channels are in the range from 0 to 255 (or from 0x00 to 0xFF in hexadecimal base).
- Parameters:
-
| r | the red channel, in the range from 0x00 to 0xFF (saturated). |
| g | the green channel, in the range from 0x00 to 0xFF(saturated). |
| b | the blue channel, in the range from 0x00 to 0xFF (saturated). |
- Returns:
- the best matching color for the (r,g,b) triplet that is supported by the system.
|