draw Text
Draws text on the given canvas.
Parameters
The X coordinate to draw the text at.
The Y coordinate to draw the text at.
The text to draw.
The color of the text. Default is white.
The size of the font. Default is the base size of the font.
The font to use. Default is the default font.
The spacing between characters. Default is 1.
The coordinates of the rotation origin. Default is 0.
The rotation angle in degrees. Default is 0.
Draws text on the given canvas.
Parameters
The X coordinate to draw the text at.
The Y coordinate to draw the text at.
The text to draw.
The color of the text. Default is white.
The size of the font. Default is the base size of the font.
The font to use. Default is the default font.
The spacing between characters. Default is 0.
The X coordinate of the rotation origin. Default is 0.
The Y coordinate of the rotation origin. Default is 0.
The rotation angle in degrees. Default is 0.