[oden] Color and position for text

This commit is contained in:
John Doty 2023-08-31 20:39:07 -07:00
parent 079006acdc
commit a08bc07cbb
6 changed files with 29 additions and 17 deletions

View file

@ -1,4 +1,4 @@
import { print } from "./graphics";
import { color, print } from "./graphics";
const lines: string[] = [];
@ -8,8 +8,10 @@ export function log(...args: unknown[]) {
}
export function draw_log() {
color(1, 1, 1, 1);
let line_y = 3;
for (const line of lines) {
print(line);
break;
print(3, line_y, line);
line_y += 8;
}
}