Convert Hex Colors to Standard RGB (sRGB)
Description
Convert one (or multiple) hex colors to sRGB.
Usage
colorlib.hex_to_sRGB(hex_, gamma=2.4)
Arguments
-
hex_
str, list of str
- hex color str or list of str.
-
gamma
float
-
Gamma correction factor, defaults to
2.4
.
Return
list
: Returns a list of numpy.ndarray
s with the corresponding red, green, and blue intensities ([r, g, b]
), all in [0., 1.]
.