rgbScale function

RGBA rgbScale (RGBA color, num red, num green, num blue)

Implementation

RGBA rgbScale(RGBA color, num red, num green, num blue) {
  return new RGBA(
    red: clampPixel((color.red * red).round()),
    green: clampPixel((color.green * green).round()),
    blue: clampPixel((color.blue * blue).round()),
    alpha: color.alpha,
  );
}