addictiveColor function

RGBA addictiveColor (RGBA color, int red, int green, int blue)

Implementation

RGBA addictiveColor(RGBA color, int red, int green, int blue) {
  return new RGBA(
    red: clampPixel(color.red + red),
    green: clampPixel(color.green + green),
    blue: clampPixel(color.blue + blue),
    alpha: color.alpha,
  );
}