ClubCardInfoDrawText
Callable
Parameters
Text: string
Text to draw
X: number
X position (left edge of text)
Y: number
Y position
Size: number
Font size (e.g., 24 for normal, 36 for titles)
Color: string
Text color
optionalBackColor: string
Optional background color for shadow effect
optionalMaxWidth: number = 1200
Optional maximum width before wrapping
Returns number
- Returns new Y position after drawing
Draws a text element with a specified font size on the canvas, wrapping within a max width Always aligns text to the left starting from the X coordinate