Methods
Parameters
optionaloptions: { color?: Color }
Returns void
- drawCircle(center: Vector, radius: number, options?: { color?: Color; strokeColor?: Color; width?: number }): void
Parameters
radius: number
optionaloptions: { color?: Color; strokeColor?: Color; width?: number }
optionalcolor: Color
optionalstrokeColor: Color
optionalwidth: number
Returns void
- drawPolygon(points: Vector[], options?: { color?: Color }): void
Parameters
optionaloptions: { color?: Color }
Returns void
- drawRay(ray: Ray, options?: { color?: Color; distance?: number }): void
Parameters
optionaloptions: { color?: Color; distance?: number }
optionalcolor: Color
optionaldistance: number
Returns void
- drawText(text: string, pos: Vector): void