setRed function Null safety
Returns a new color where the red channel of color
has been replaced
by value
.
Implementation
int setRed(int color, int value) => (color & 0xffffff00) | (clamp255(value));
Returns a new color where the red channel of color
has been replaced
by value
.
int setRed(int color, int value) => (color & 0xffffff00) | (clamp255(value));