Skip to main content

DynamicDrawText

Callable

  • DynamicDrawText(text: string, ctx: CanvasRenderingContext2D, x: number, y: number, options: DynamicDrawOptions): void

  • Draws the given text to the provided canvas rendering context at the given positions. Text is drawn horizontally, respecting the configuration in the provided options (if any).


    Parameters

    • text: string

      The text to draw

    • ctx: CanvasRenderingContext2D

      The rendering context to draw the text to

    • x: number

      The x coordinate at which to draw the text

    • y: number

      The y coordinate at which to draw the text

    • options: DynamicDrawOptions

      Additional drawing options

    Returns void

    • Nothing