SassColor.displayP3 constructor

SassColor.displayP3(
  1. double? red,
  2. double? green,
  3. double? blue, [
  4. double? alpha = 1,
])

Creates a color in ColorSpace.displayP3.

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.displayP3(double? red, double? green, double? blue,
        [double? alpha = 1]) =>
    SassColor._forSpace(ColorSpace.displayP3, red, green, blue, alpha);