SassColor.rgb constructor

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

Creates a color in ColorSpace.rgb.

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.rgb(num? red, num? green, num? blue, [num? alpha = 1]) =>
    SassColor.rgbInternal(red, green, blue, alpha);