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