color_tuple_to_hex

marxs.visualization.utils.color_tuple_to_hex(color)[source] [edit on github]

Convert color tuple to hex string.

Parameters:
colortuple

tuple has three elements (rgb) that are floats between 0 and 1 or ints between 0 and 255.

Returns:
hexstringstring

string encoding that number as hex