function update() {
$.text.print($.w/2, $.h/2-50, "Before Text Settings");
$.text.size = 16;
$.text.maxWidth = 50;
$.text.alignment.x = "left"
$.text.bold = true;
$.text.italic = true;
$.text.hyphenation = false;
$.text.rotation = 30;
$.text.print($.w/2, $.h/2, "Hello World!");
}$.text
controls for formatting and outputting text
Properties
- $.text.size//number
- $.text.font//string
- $.text.bold//boolean
- $.text.italic//boolean
- $.text.alignment//Alignment
- $.text.maxWidth//null|number
- $.text.hyphenation//boolean
- $.text.alignment.x//"left" || "center" || "right"
- $.text.alignment.y//"left" || "center" || "right"
- $.text.customFont//string[]
- $.text.rotation//number
- $.text.movedByCamera//boolean