from colorspace import HLS
# Constructing color object with one single color via float
150, 0.1, 3) HLS(
HLS color object (1 colors)
H L S
1: 150.00 0.10 3.00
Documentation built with Python 3.11.10
, pyp2qmd 0.1.1
and quarto 1.5.57
on GitHub.
Creates a color object in the Hue-Lightness-Saturation (HLS) color space. Can be converted to: RGB, sRGB, HSV, and hexcols. Not allowed (ambiguous) are transformations to CIEXYZ, CIELUV, CIELAB, polarLUV, and polarLAB.
HLS(H, L, S, alpha=None)
H
int, float, list, numpy.array
L
int, float, list, numpy.array
S
int, float, list, numpy.array
alpha
None, float, list, numpy.array
[0., 1.]
) where 0.
equals full transparency, 1.
full opacity. If None
(default) no transparency is added.
HLS.colors(fixup=True, rev=False)
HLS.dropalpha()
HLS.get(dimname=None)
HLS.get_whitepoint()
HLS.hasalpha()
HLS.hclplot(**kwargs)
HLS.length()
HLS.set(**kwargs)
HLS.set_whitepoint(**kwargs)
HLS.specplot(**kwargs)
HLS.swatchplot(**kwargs)
HLS.to(to, fixup=True)
from colorspace import HLS
# Constructing color object with one single color via float
HLS(150, 0.1, 3)
HLS color object (1 colors)
H L S
1: 150.00 0.10 3.00
HLS color object (3 colors)
H L S
1: 150.00 0.10 3.00
0.00 0.70 0.00
10.00 0.10 3.00