from colorspace import sequential_hcl, hexcols
sequential_hcl().colors()['#023FA5',
'#3F56A6',
'#5D6CAE',
'#7681B6',
'#8C94BF',
'#A1A6C8',
'#B3B7CF',
'#C4C6D6',
'#D2D3DC',
'#DCDDE0',
'#E2E2E2']
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.
sequential_hcl.colors(n=11, fixup=None, alpha=None,
**kwargs)
nint
fixupNone, bool
None the fixup parameter from the object will be used. Can be set to True or False to explicitly control the fixup here.
alphaNone, 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',
'#3F56A6',
'#5D6CAE',
'#7681B6',
'#8C94BF',
'#A1A6C8',
'#B3B7CF',
'#C4C6D6',
'#D2D3DC',
'#DCDDE0',
'#E2E2E2']
['#070707', '#690056', '#C30E62', '#ED8353', '#FDF5EB']
['#023FA54D', '#6A76B24D', '#A1A6C84D', '#CBCDD94D', '#E2E2E24D']