bebi103.image.rgb_frac_to_hex
- bebi103.image.rgb_frac_to_hex(rgb_frac)
Convert fractional RGB values to hexidecimal color string.
- Parameters
rgb_frac (array_like, shape (3,)) – Fractional RGB values; each entry is between 0 and 1.
- Returns
Hexidecimal string for the given RGB color.
- Return type
str
Examples
>>> rgb_frac_to_hex((0.65, 0.23, 1.0)) '#a53aff'
>>> rgb_frac_to_hex((1.0, 1.0, 1.0)) '#ffffff'