setRGB method

Color setRGB([
  1. double? r,
  2. double? g,
  3. double? b,
  4. String colorSpace = LinearSRGBColorSpace,
])

Implementation

Color setRGB([double? r, double? g, double? b, String colorSpace = LinearSRGBColorSpace]) {
  this.r = r ?? 1.0;
  this.g = g ?? 1.0;
  this.b = b ?? 1.0;

  ColorManagement.toWorkingColorSpace( this, colorSpace );

  return this;
}