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

  1. x number X coordinate of the text.
  2. y number Y coordinate of the text.
  3. text string Text to draw
  4. fcol? number | string Text colour. Accepts blit or colours.. Defaults to current text colour.
  5. bcol? number | string Background colour. Accepts blit or colours.. Defaults to current background colour.
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

  1. x number X coordinate of the text.
  2. y number Y coordinate of the text.
  3. text string Text to draw
  4. fcol? number | string Text colour. Accepts blit or colours.. Defaults to current text colour.
  5. bcol? number | string Background colour. Accepts blit or colours.. Defaults to current background colour.
  6. wrap? number | nil Whether or not to wrap the text. If unpassed it will be a single line, or wrapped at the length passed.