setPixel32 method

void setPixel32(
  1. num x,
  2. num y,
  3. int color
)

Draw an RGBA pixel at the given coordinates.

setPixel32 updates the underlying texture. If you need to make multiple calls, use BitmapDataUpdateBatch instead.

Implementation

void setPixel32(num x, num y, int color) {
  final updateBatch = BitmapDataUpdateBatch(this);
  updateBatch.setPixel32(x, y, color);
  updateBatch.update();
}