Convert RGB to Standard RGB
Description
Converts one (or multiple) colors defined by their red, blue, green, and blue coordinates ([0.0, 1.0]
) to the Standard RGB color space; returning a modified list of red, green, blue coordinates.
Usage
colorlib.RGB_to_sRGB(R, G, B, gamma=2.4)
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.]
). -
gamma
float
-
gamma adjustment, defaults to
2.4
.
Return
list
: Returns a list of numpy.ndarray
s with R
, G
, and B
values.