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