Get Colors
Description
Returns the colors of the current color palette.
Usage
diverging_hsv.colors(n=11, fixup=None, alpha=None,
**kwargs)
Arguments
-
n
int
- Number of colors which should be returned.
-
fixup
None, bool
-
Should sRGB colors be corrected if they lie outside the defined color space? If
None
thefixup
parameter from the object will be used. Can be set toTrue
orFalse
to explicitly control the fixup here. -
alpha
None, float, list, or numpy.ndarray
-
Allows to add an transparency (alpha channel) to the colors. Can be a single float, a list, or a numpy array. If a list or array is provided it must be of length 1 or of length
n
and be convertible to float, providing values between0.0
(full opacity) and1.0
(full transparency) -
**kwargs
-
Currently allows for
rev = True
to reverse the colors.
Return
list
: Returns a list of str with n
colors from the color palette.