weldx.visualization.colors.get_color#
- weldx.visualization.colors.get_color(key, color_dict, color_generator)#
Get a 24 bit RGB color from a dictionary or generator function.
If the provided key is found in the dictionary, the corresponding color is returned. Otherwise, the generator is used to provide a color.
- Parameters
- Returns
RGB color as 24 bit integer
- Return type