getForeground method

Color getForeground(
  1. int x,
  2. int y
)

Get foreground color at the specified coordinates

Implementation

Color getForeground(int x, int y) {
  final index = _getIndex(x, y);
  return _readRgba(foregrounds, index);
}