setPixel32 method

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

Implementation

void setPixel32(num x, num y, int color) {
  _renderContext.setTransform(_drawMatrix);
  _renderContext.rawContext.fillStyle = color2rgba(color);
  _renderContext.rawContext.clearRect(x, y, 1, 1);
  _renderContext.rawContext.fillRect(x, y, 1, 1);
}