prg_color_to_rgb()
Abstract
Determines an RGB specification corresponding to a color object.
Syntax
prg_color_to_rgb (color, r_ptr, g_ptr, b_ptr)
| Argument | Type | Description |
|---|---|---|
color |
PrgT_Color |
Color object to be converted to an HLS specification. |
r_ptr |
PrgT_Color_Component * |
Area to hold value for red, from 0 to 255. |
g_ptr |
PrgT_Color_Component * |
Area to hold value for green, from 0 to 255. |
b_ptr |
PrgT_Color_Component * |
Area to hold value for blue, from 0 to 255. |
Return Type
PrgT_Compcode
PrgC_Compcode_Failure if an RGB specification cannot be created; PrgC_Compcode_Success otherwise.
Header
prg_color.h
Details
This function determines an RGB (red, green, blue) specification corresponding to color.