Skip to main content

DebugDraw

Index

Methods

drawCircle

  • drawCircle(pos: Vector, radius: number, color: Color, stroke?: Color, thickness?: number): void
  • Draw a circle to the Excalibur Graphics context


    Parameters

    • pos: Vector
    • radius: number
    • color: Color
    • optionalstroke: Color

      Optionally specify the stroke color

    • optionalthickness: number

    Returns void

drawLine

drawPoint

drawRect

  • drawRect(x: number, y: number, width: number, height: number, rectOptions?: RectGraphicsOptions): void
  • Draw a debugging rectangle to the screen


    Parameters

    Returns void

drawText

  • drawText(text: string, pos: Vector): void
  • Draw debug text


    Parameters

    Returns void