Functions | |
HC_BOOLEAN | Compute_Color (const char *name, const char *out_type, HC_RGB *out_value) |
HC_BOOLEAN | Compute_Color_By_Value (const char *in_type, const HC_RGB *in_value, const char *out_type, HC_RGB *out_value) |
HC_BOOLEAN Compute_Color | ( | const char * | name, | |
const char * | out_type, | |||
HC_RGB * | out_value | |||
) |
Allows access to the color-conversion routines used internally in HOOPS.
name | - A color-by-name color specification, in the style of Set_Color() . | |
out_type | - Special constant---either "HLS", "HSV", "HIC", or "RGB". The constant is a quoted string.Uppercase versus lowercase is not significant. | |
out_value | - A color triple that represents hue, lightness, and saturation, or red, green, and blue, etc., depending on the values of in_type and out_type. Returned to user. Passed by reference in all languages. |
If in_type or out_type are not legitimate an error is signalled. Other errors are not signalled and are returned in the success flag.
The final RGB values passed to the device usually have a gamma correction applied---these routines do not include gamma correction.
HC_BOOLEAN Compute_Color_By_Value | ( | const char * | in_type, | |
const HC_RGB * | in_value, | |||
const char * | out_type, | |||
HC_RGB * | out_value | |||
) |
Similar to Compute_Color(), but operates with a color values rather than names or map indices.
in_type | - Special constant---either "HLS", "HSV", "HIC", or "RGB". The constant is a quoted string. Uppercase versus lowercase is not significant. | |
in_value | - A color triple that represents hue, lightness, and saturation, or red, green, and blue, etc., depending on the values of in_type and out_type. Passed by reference in all languages. | |
out_type | - Special constant---either "HLS", "HSV", "HIC", or "RGB". The constant is a quoted string.Uppercase versus lowercase is not significant. | |
out_value | - A color triple that represents hue, lightness, and saturation, or red, green, and blue, etc., depending on the values of in_type and out_type. Returned to user. Passed by reference in all languages. |