rgb2hex#

cosmicjellyfish.analysis.fishconsumer.rgb2hex(rgb_tuple)[source]#

Convert an RGB tuple to a hexadecimal color code.

Parameters:

rgb_tuple (tuple) – An RGB tuple with values typically between 0-1 or 0-255

Returns:

A hexadecimal color code string (e.g., “#FF0000”)

Return type:

str