text
Draw various texts on the screen.
text(x, y, text [, fcol [, bcol]]) | Draw a string at the X/Y coordinates |
---|---|
framedText(x, y, text [, fcol [, bcol [, wrap]]]) | Draw a frame around the text. |
- text(x, y, text [, fcol [, bcol]])Source
Draw a string at the X/Y coordinates
Parameters
- framedText(x, y, text [, fcol [, bcol [, wrap]]])Source
Draw a frame around the text. The x/y coordinates is where the text starts, and the frame is drawn around it.
Parameters
- x number X coordinate of the text.
- y number Y coordinate of the text.
- text string Text to draw
- fcol? number | string Text colour. Accepts
blit
orcolours.
. Defaults to current text colour. - bcol? number | string Background colour. Accepts
blit
orcolours.
. Defaults to current background colour. - wrap? number | nil Whether or not to wrap the text. If unpassed it will be a single line, or wrapped at the length passed.