setPixelRgba method

  1. @override
void setPixelRgba(
  1. int x,
  2. int y,
  3. num r,
  4. num g,
  5. num b,
  6. num a,
)
override

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 ??= PixelUint1.imageData(this);
  _pixel!.setPosition(x, y);
  _pixel!.setRgba(r, g, b, a);
}