SassColor.xyzD50 constructor

SassColor.xyzD50(
  1. double? x,
  2. double? y,
  3. double? z, [
  4. double? alpha = 1,
])

Creates a color in ColorSpace.xyzD50.

If null is passed for alpha, that indicates that it's a missing component. In most cases, this is equivalent to the color being transparent.

Throws a RangeError if alpha isn't between 0 and 1.

Implementation

factory SassColor.xyzD50(double? x, double? y, double? z,
        [double? alpha = 1]) =>
    SassColor._forSpace(ColorSpace.xyzD50, x, y, z, alpha);