from colorspace import terrain_hcl
= terrain_hcl()
pal 10) pal.colors(
['#26A63A',
'#68AC20',
'#92B106',
'#B4B61A',
'#D3BA3D',
'#EFBD60',
'#FFC183',
'#FFC6A7',
'#FFCDC9',
'#F1F1F1']
Documentation built with Python 3.11.10
, pyp2qmd 0.1.1
and quarto 1.5.57
on GitHub.
terrain_hcl
is an implementation of the base R ‘terrain.colors’ palette but constructed in HCL space based on a call to sequential_hcl.
See also: qualitative_hcl, sequential_hcl, diverging_hcl, divergingx_hcl, rainbow_hcl, heat_hcl, diverging_hsv, and rainbow.
terrain_hcl(h=[130, 0], c=[80, 0], l=[60, 95],
power=[0.1, 1.0], fixup=True, rev=False,
*args, **kwargs)
h
list of int
c
list of int
l
int
power
list of float
fixup
bool
rev
bool
*args
**kwargs
h1
, h2
, c1
, c2
, l1
, l2
, p1
, p2
.
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.
terrain_hcl.cmap(n=256, name='custom_hcl_cmap')
terrain_hcl.colors(n=11, fixup=None, alpha=None, **kwargs)
terrain_hcl.get(key)
terrain_hcl.hclplot(n=7, **kwargs)
terrain_hcl.name()
terrain_hcl.show_settings()
terrain_hcl.specplot(n=180, *args, **kwargs)
terrain_hcl.swatchplot(n=7, **kwargs)
['#26A63A',
'#68AC20',
'#92B106',
'#B4B61A',
'#D3BA3D',
'#EFBD60',
'#FFC183',
'#FFC6A7',
'#FFCDC9',
'#F1F1F1']