setForeground method

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

Set foreground color at the specified coordinates

Implementation

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