drawChar method

void drawChar(
  1. int x,
  2. int y,
  3. int charCode, [
  4. Color? fore,
  5. Color? back,
])

Writes a one-character string consisting of charCode at column x, row y using fore as the text color and back as the background color.

Implementation

void drawChar(int x, int y, int charCode, [Color? fore, Color? back]) {
  drawGlyph(x, y, Glyph.fromCharCode(charCode, fore, back));
}