Text:set_text_alignment

Sets how text is aligned within this element.

Usage

text:set_text_alignment(alignment)

Arguments

Name Type Description
alignment love.AlignMode Text alignment to use when drawing this text.

Examples

local text = crystal.Text:new("Hello World");
text:set_text_alignment("center");
print(text:text_alignment()); -- Prints "center"

This site uses Just the Docs, a documentation theme for Jekyll.