setPixel method
Draw an RGB pixel at the given coordinates.
setPixel updates the underlying texture. If you need to make multiple calls, use BitmapDataUpdateBatch instead.
Implementation
void setPixel(num x, num y, int color) {
final updateBatch = BitmapDataUpdateBatch(this);
updateBatch.setPixel32(x, y, color | 0xFF000000);
updateBatch.update();
}