from colorspace import CIELAB
# Constructing color object with one single color via float
-30, 10, 10) CIELAB(
CIELAB color object (1 colors)
L A B
1: -30.00 10.00 10.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 CIELAB color space. Can be converted to: CIEXYZ, CIELUV, CIELAB, RGB, sRGB, polarLAB, and hexcols. Not allowed (ambiguous) are transformations to HSV and HLS.
CIELAB(L, A, B, alpha=None)
L
int, float, list, numpy.array
A
int, float, list, numpy.array
B
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.
CIELAB.colors(fixup=True, rev=False)
CIELAB.dropalpha()
CIELAB.get(dimname=None)
CIELAB.get_whitepoint()
CIELAB.hasalpha()
CIELAB.hclplot(**kwargs)
CIELAB.length()
CIELAB.set(**kwargs)
CIELAB.set_whitepoint(**kwargs)
CIELAB.specplot(**kwargs)
CIELAB.swatchplot(**kwargs)
CIELAB.to(to, fixup=True)
from colorspace import CIELAB
# Constructing color object with one single color via float
CIELAB(-30, 10, 10)
CIELAB color object (1 colors)
L A B
1: -30.00 10.00 10.00
CIELAB color object (2 colors)
L A B
1: -30.00 20.00 40.00
30.00 80.00 40.00