drawAt method

void drawAt(
  1. int column,
  2. int line,
  3. String data,
  4. TextComponentStyle style,
)

Draws a string data starting at position (column, line) with a given style.

Each character in data is drawn sequentially on the same row.

Implementation

void drawAt(int column, int line, String data, TextComponentStyle style) {
  for (int i = 0; i < data.length; i++) {
    drawChar(
      column + i,
      line,
      data[i],
      fg: style.color,
      bg: style.bgColor,
      styles: style.styles,
    );
  }
}