[oden] Color and position for text
This commit is contained in:
parent
079006acdc
commit
a08bc07cbb
6 changed files with 29 additions and 17 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue