DebugDraw
Index
Methods
drawCircle
drawLine
Draw a debugging line to the screen
Parameters
start: Vector
'
end: Vector
optionallineOptions: LineGraphicsOptions
Returns void
drawPoint
Draw a debugging point to the screen
Parameters
point: Vector
optionalpointOptions: PointGraphicsOptions
Returns void
drawRect
Draw a debugging rectangle to the screen
Parameters
x: number
y: number
width: number
height: number
optionalrectOptions: RectGraphicsOptions
Returns void
drawText
Debug text styling options
Parameters
text: string
pos: Vector
optionaloptions: DebugTextOptions
Returns void
measureText
Measure the pixel dimensions of debug text as it would be drawn by DebugDraw.drawText, accounting for the optional scale factor. Useful for sizing UI around debug labels.
Parameters
text: string
Text to measure
optionalscale: number
Glyph scale factor, defaults to 1
Returns { height: number; width: number }
height: number
width: number
Draw a circle to the Excalibur Graphics context