Functions

Label(init) Constructor
Label:draw(pos, text) Draw some text

Functions

Label(init)

Constructor

Parameters:

init Constructor properties
init.alignment The text alignment (Label.LEFT, Label.CENTER (default), Label.RIGHT)
init.ctx The label's context name
init.fontfile The file to load the font from
init.margin The x/y margin around the font in pixels (default {0, 0})
init.size The font size (default 8)
Label:draw(pos, text)

Draw some text

Parameters:

pos The position to draw the text
text The text to draw