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

rnumpy.ndarray
Intensities for red ([0., 1.,]).
gnumpy.ndarray
Intensities for green ([0., 1.,]).
bnumpy.ndarray
Intensities for blue ([0., 1.,]).
fixupbool
Whether or not the rgb values should be corrected if they lie outside the defined RGB space (outside [0., 1.,]), defaults to True.

Return

list: A list with hex color str.