: draw 2d text¶
Draw text
Usage: : draw 2d text [OPTIONS] <POS_TEXT>...
Arguments¶
| Name | Description | Possible values | Default |
|---|---|---|---|
<POS_TEXT> | Position and text in the form of an expression that returns an array [pos, text], e.g. [v2(0, 0), "hi"]. text can also be a Variant, in which case it will be stringified. If it's an array, every entry in the array will be drawn on a separate line |
Options¶
| Name | Description | Possible values | Default |
|---|---|---|---|
-t--time | The lifetime of the text, in seconds (0 = only drawn for one frame) | 1 | |
-c--color | Color of the text | green | |
-a--align | Horizontal alignment of the text | left, center, right | left |