from colorspace import rainbow_hcl
= rainbow_hcl()
pal 10) pal.colors(
['#E495A5',
'#D89F7F',
'#BDAB66',
'#96B56C',
'#65BC8C',
'#39BEB1',
'#55B8D0',
'#91ACE1',
'#C29DDE',
'#DE94C8']
Documentation built with Python 3.11.10
, pyp2qmd 0.1.1
and quarto 1.5.57
on GitHub.
rainbow_hcl
computes a rainbow of colors via qualitative_hcl defined by different hues given a single value of each chroma and luminance. It corresponds to rainbow
which computes a rainbow in HSV space.
See also: qualitative_hcl, sequential_hcl, diverging_hcl, divergingx_hcl, heat_hcl, terrain_hcl, diverging_hsv, and rainbow.
rainbow_hcl(c=50, l=70, start=0,
end=<function rainbow_hcl.<lambda>>,
fixup=True, rev=False, *args, **kwargs)
c
float, int
[0-100+]
.
l
float, int
[0-100]
.
start
float, int, lambda
end
float, int, lambda
360 * (n - 1) / n
).
fixup
bool
rev
bool
False
.
*args
**kwargs
h1
, h2
, c1
, l1
, l2
, p1
.
Initialize new object, no return. Raises a set of errors if the parameters are misspecified. Note that the object is callable, the default object call can be used to return hex colors (identical to the .colors()
method), see examples.
rainbow_hcl.cmap(n=256, name='custom_hcl_cmap')
rainbow_hcl.colors(n=11, fixup=None, alpha=None, **kwargs)
rainbow_hcl.get(key)
rainbow_hcl.hclplot(n=7, **kwargs)
rainbow_hcl.name()
rainbow_hcl.show_settings()
rainbow_hcl.specplot(n=180, *args, **kwargs)
rainbow_hcl.swatchplot(n=7, **kwargs)
['#E495A5',
'#D89F7F',
'#BDAB66',
'#96B56C',
'#65BC8C',
'#39BEB1',
'#55B8D0',
'#91ACE1',
'#C29DDE',
'#DE94C8']
# The standard call of the object also returns hex colors. Thus,
# you can make your code slimmer by calling
rainbow_hcl()(10)
['#E495A5',
'#D89F7F',
'#BDAB66',
'#96B56C',
'#65BC8C',
'#39BEB1',
'#55B8D0',
'#91ACE1',
'#C29DDE',
'#DE94C8']