Skip to main content

DrawTextFit

Callable

  • DrawTextFit(Text, X, Y, Width, Color, BackColor): void

  • Draws a text element on the canvas that will fit on the specified width


    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