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
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)
Lint, float, list, numpy.array
Aint, float, list, numpy.array
Bint, float, list, numpy.array
alphaNone, 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