6.4. cpforager.misc.rgb_to_hex

cpforager.misc.rgb_to_hex(rgb_col)

Convert RGB color to hexadecimal code.

Parameters:

rgb_col (array(float)) – RGB color array

Returns:

the hexadecimal code of the RGB color

Return type:

str