withBlue method

Color withBlue (int b)

Returns a new color that matches this color with the blue channel replaced with b (which ranges from 0 to 255).

Out of range values will have unexpected effects.

Implementation

Color withBlue(int b) {
  return new Color.fromARGB(alpha, red, green, b);
}