Skip to main content

DynamicDrawTextArc

Callable

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

  • Draws the given text in a circular arc at the given [x, y] coordinate. The text will be drawn so that the center of the text is positioned on the given coordinates.

    @see

    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 center the text

    • y: number

      The y coordinate at which to center the text

    • options: DynamicDrawOptions

      Additional drawing options. These can be used to specify the radius of the circle (determining how curved the text appears), as well as the direction along the circle that the text is drawn in (by default, text is drawn clockwise).

    Returns void

    • Nothing