DrawTextFit
Callable
Parameters
Text: string
Text to draw
X: number
Position of the text on the X axis
Y: number
Position of the text on the Y axis
Width: number
Width in which the text has to fit
Color: string
Color of the text
optionalBackColor: string
Color of the background
Returns void
- Nothing
Draws a text element on the canvas that will fit on the specified width