setBlue function

int setBlue(
  1. int color,
  2. int value
)

Returns a new color where the blue channel of color has been replaced by value.

Implementation

int setBlue(int color, int value) =>
    (color & 0xff00ffff) | (clamp255(value) << 16);