from colorspace import sRGB, hexcols, HCL
# Examples for three different color objects
x1 = sRGB([1, 0], [1, 1], [0, 0])
[x1.length(), len(x1)][2, 2]
Documentation built with Python 3.11.10, pyp2qmd 0.1.1 and quarto 1.5.57 on GitHub.
Returns the number of colors defined in this color object. Note that len(<object>) works as well.
polarLUV.length()
int: Number of colors.