setForeground method

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

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

Implementation

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