XyzColor constructor
/// A color in the CIEXYZ color space.
x
, y
, and z
must all be >= 0
.
alpha
must be >= 0
and <= 255
.
The XYZ values have been normalized to a 0 to 100 range that represents the whole of the sRGB color space, but have been left upwardly unbounded to allow to allow for conversions between the XYZ and LAB color spaces that fall outside of the sRGB color space's bounds.
Implementation
const XyzColor(
num x,
num y,
num z, [
int alpha = 255,
]) : assert(x >= 0),
assert(y >= 0),
assert(z >= 0),
assert(alpha >= 0 && alpha <= 255),
super(x, y, z, alpha);