setPixelRgba method
Set the color of the Pixel at the given coordinates to the given
color values r
, g
, b
, and a
.
Implementation
@override
void setPixelRgba(int x, int y, num r, num g, num b, num a) {
if (numChannels < 1) {
return;
}
_pixel ??= PixelUint4.imageData(this);
_pixel!.setPosition(x, y);
_pixel!.setRgba(r, g, b, a);
}