setBackground method

void setBackground(
  1. int x,
  2. int y,
  3. Color color
)

Stores packed RGBA background at cell (x, y).

Implementation

void setBackground(int x, int y, Color color) {
  final index = _getIndex(x, y);
  _writeRgba(_backgrounds, index, color);
}