from colorspace import diverging_hcl, hexcols
diverging_hcl().colors()
['#023FA5',
'#5D6CAE',
'#8C94BF',
'#B3B7CF',
'#D2D3DC',
'#E2E2E2',
'#DDD0D2',
'#D2B0B6',
'#C18692',
'#AB5468',
'#8E063B']
Documentation built with Python 3.11.10
, pyp2qmd 0.1.1
and quarto 1.5.57
on GitHub.
Returns the colors of the current color palette.
diverging_hcl.colors(n=11, fixup=None, alpha=None,
**kwargs)
n
int
fixup
None, bool
None
the fixup
parameter from the object will be used. Can be set to True
or False
to explicitly control the fixup here.
alpha
None, float, list, or numpy.ndarray
n
and be convertible to float, providing values between 0.0
(full opacity) and 1.0
(full transparency)
**kwargs
rev = True
to reverse the colors.
list
: Returns a list of str with n
colors from the color palette.
['#023FA5',
'#5D6CAE',
'#8C94BF',
'#B3B7CF',
'#D2D3DC',
'#E2E2E2',
'#DDD0D2',
'#D2B0B6',
'#C18692',
'#AB5468',
'#8E063B']
['#11C638', '#95D69A', '#E2E2E2', '#F0BC95', '#EF9708']
['#023FA54D', '#A1A6C84D', '#E2E2E24D', '#CA9CA44D', '#8E063B4D']