setBackground method

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

Set background color at the specified coordinates

Implementation

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