drawAt method
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,
);
}
}