Convert Standard RGB (sRGB) to Hex Colors
Description
Converting one (or multiple) colors defined by their red, green, and blue coordinates from the Standard RGB color space to hex colors.
Usage
colorlib.sRGB_to_hex(r, g, b, fixup=True)
Arguments
-
r
numpy.ndarray
-
Intensities for red (
[0., 1.,]
). -
g
numpy.ndarray
-
Intensities for green (
[0., 1.,]
). -
b
numpy.ndarray
-
Intensities for blue (
[0., 1.,]
). -
fixup
bool
-
Whether or not the
rgb
values should be corrected if they lie outside the defined RGB space (outside[0., 1.,]
), defaults toTrue
.
Return
list
: A list with hex color str.