weldx.visualization.colors.color_to_rgb_normalized#

weldx.visualization.colors.color_to_rgb_normalized(color)#

Convert an arbitrary RGB color representation into a normalized RGB triplet.

Parameters

color (Union[int, Tuple[int, int, int], Tuple[float, float, float]]) – A 24 bit integer, a triplet of integers with a value range of 0-255 or a triplet of floats with a value range of 0.0-1.0 that represent an RGB color.

Returns

RGB color triplet with the value range 0.0 to 1.0

Return type

Tuple[float, float, float]