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
| Name | Required | Default | Description |
|---|---|---|---|
text | yes | - | Text to write |
x | yes | - | x-coordinate of the center |
y | yes | - | 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 |