from colorspace import polarLUV, HCL
# Constructing color object with one single color via float
100., 30, 50.) polarLUV(
polarLUV color object (1 colors)
H C L
1: 100.00 30.00 50.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 polar representation of the CIELUV color space, also known as the Hue-Chroma-Luminance (HCL) color space. Can be converted to: CIEXYZ, CIELUV, CIELAB, RGB, sRGB, polarLAB, and hexcols. Not allowed (ambiguous) are transformations to HSV and HLS.
HCL(H, C, L, alpha=None)
H
int, float, list, numpy.array
[-360., 360.]
).
C
int, float, list, numpy.array
[0., 100.+]
).
L
int, float, list, numpy.array
[0., 100.]
).
alpha
None, float, list, numpy.array
[0., 1.]
) where 0.
equals full transparency, 1.
full opacity. If None
(default) no transparency is added.
HCL.colors(fixup=True, rev=False)
HCL.dropalpha()
HCL.get(dimname=None)
HCL.get_whitepoint()
HCL.hasalpha()
HCL.hclplot(**kwargs)
HCL.length()
HCL.set(**kwargs)
HCL.set_whitepoint(**kwargs)
HCL.specplot(**kwargs)
HCL.swatchplot(**kwargs)
HCL.to(to, fixup=True)
from colorspace import polarLUV, HCL
# Constructing color object with one single color via float
polarLUV(100., 30, 50.)
polarLUV color object (1 colors)
H C L
1: 100.00 30.00 50.00
polarLUV color object (1 colors)
H C L
1: 100.00 30.00 50.00
polarLUV color object (2 colors)
H C L
1: 100.00 30.00 30.00
80.00 50.00 80.00