from colorspace import hexcols
= hexcols("#ff0000")
c = 100., Y = 100., Z = 101.)
c.set_whitepoint(X c.get_whitepoint()
{'X': 100.0, 'Y': 100.0, 'Z': 101.0}
Documentation built with Python 3.11.10
, pyp2qmd 0.1.1
and quarto 1.5.57
on GitHub.
A white point definition is used to adjust the colors. This method allows to set custom values. If not explicitly set a default specification is used. The get_whitepoint method can be used to extract the currently used definition.
RGB.set_whitepoint(**kwargs)
**kwargs
X
, Y
, and Z
, each of which must be float: White specification for dimension X
/Y
/Z
.
ValueError
: If named argument is not one of X
, Y
, Z
.