[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

@ -44,10 +44,12 @@ export function stroke(r: number, g: number, b: number, a: number = 1) {
* separated by spaces. If you want them separated by something else,
* format the string yourself.
*
* @param x - The x coordinate of the upper-left corner of the text
* @param y - The y coordinate of the upper-left corner of the text
* @param args - Arguments to print to the console.
*/
export function print(...args: unknown[]) {
core.print(args.join(" "));
export function print(x: number, y: number, ...args: unknown[]) {
core.print(args.join(" "), x, y);
}
/**