Text
Last updated
text "text-to-draw" sizetext-to-drawThe text string to display.
sizeThe size of the text.
The text command displays the given text at the current cursor position, applying the specified size for rendering.
text "Hello, World!" 16
// Renders the text "Hello, World!" at the current draw cursor position with a font size of 16The centext command works similarly to text, but centers the text on the current draw cursor position.
Last updated
centext "hello world" 10