Skip to main content

Debug

Index

Constructors

constructor

Properties

static_ctx

static_drawCalls

_drawCalls: (ctx: ExcaliburGraphicsContext) => void[] = []

staticz

z: number = Infinity

Methods

staticclear

  • clear(): void
  • Returns void

staticdraw

staticdrawBounds

staticdrawCircle

  • drawCircle(center: Vector, radius: number, options?: { color?: Color; strokeColor?: Color; width?: number }): void
  • Parameters

    • center: Vector
    • radius: number
    • optionaloptions: { color?: Color; strokeColor?: Color; width?: number }
      • optionalcolor: Color
      • optionalstrokeColor: Color
      • optionalwidth: number

    Returns void

staticdrawLine

staticdrawLines

staticdrawPoint

staticdrawPolygon

  • drawPolygon(points: Vector[], options?: { color?: Color }): void
  • Parameters

    Returns void

staticdrawRay

  • drawRay(ray: Ray, options?: { color?: Color; distance?: number }): void
  • Parameters

    • ray: Ray
    • optionaloptions: { color?: Color; distance?: number }
      • optionalcolor: Color
      • optionaldistance: number

    Returns void

staticdrawText

  • drawText(text: string, pos: Vector): void
  • Parameters

    Returns void

staticflush

staticregisterGraphicsContext