HC_Compute_Color
-
bool
HC_Compute_Color(char const *name, char const *out_type, RGB *out_value) - bool HC_Compute_Color(char const name, char const out_type, RGB out_value)
Allows access to the color-conversion routines used internally in HOOPS.
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_Set_Color, HC_Set_Color_By_Value, HC_Define_Color_Name.Parameters
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.
Returns
true if it succeeds in turning the input color string into a color value in the format specified by out_type; otherwise, it returns false.