NXOpen.UF.Disp.AskColor¶
-
Disp.
AskColor
()¶ Refer to UF_DISP_ask_color for documentation.
Signature:
AskColor(clrNum, clrModel)
Parameters: - clrNum (int) – The number of the color whose name and value are to be returned; Range: 0 .. (# color records in CTO) - 1 Note: 0 is for the background color
- clrModel (int) – The color model of the values in clr_values: UF_DISP_rgb_model UF_DISP_hsv_model UF_DISP_hls_model
Returns: A Tuple
Return type: A tuple consisting of (clrName,clrValues)
clrName(str): A pointer to the name of the color. This must be freed by the caller using UF_free
clrValues(list of float): Three doubles representing the color, where the meaning and range of each value depends on the color model specified: rgb: clr_values[0]: 0.0
License requirements: None