PLAYGROUND (experimental)

text

text(text, x, y, [ax], [ay], [axy], [stroke=#000000])

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
axy--Align position horizontaly AND verticaly (0-1) - You can use START, MIDDLE, END - takes precedence over the ax,ay parameters
stroke-#000000Stroke color