17 lines
331 B
TypeScript
17 lines
331 B
TypeScript
import { color, print } from "./graphics";
|
|
|
|
const lines: string[] = [];
|
|
|
|
export function log(...args: unknown[]) {
|
|
// const line = args.join(" ");
|
|
lines.push(args.join(" "));
|
|
}
|
|
|
|
export function draw_log() {
|
|
color(1, 1, 1, 1);
|
|
let line_y = 3;
|
|
for (const line of lines) {
|
|
print(3, line_y, line);
|
|
line_y += 8;
|
|
}
|
|
}
|