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.14.2, pyp2qmd 0.1.2 and quarto 1.8.27 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.
[2, 2]