TESTER

text

text(text, x, y, [ax], [ay], [stroke])

Draws text using the font previously loaded with load_text()

Syntaxe

text(text="Hello World", x=10, y=10, stroke="#000000")

Arguments

NameRequiredDefaultDescription
textyes-Text to write
xyes-x-coordinate of the center
yyes-y-coordinate of the center
ax--Align position horizontaly (0-1) - You can use START, MIDDLE, END, or use text_align() for global consideration
ay--Align position verticaly (0-1) - You can use START, MIDDLE, END, or use text_align() for global consideration
stroke--Stroke color