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