Returns a new color where the alpha channel of color has been replaced by value.
color
value
int setAlpha(int color, int value) => (color & 0x00ffffff) | (clamp255(value) << 24);