Methods
drawRect
- drawRect(rect, color, thickness, radius?): void
-
Parameters
-
-
-
thickness: number
-
Optional
radius: number
Returns void
drawText
- drawText(pos, text, size, color): void
-
Parameters
-
-
text: string
-
size: number
-
Returns void
drawTextFull
- drawTextFull(area, text, size, color, alignment, verticalAlignment): void
-
Parameters
-
-
text: string
-
size: number
-
-
-
Returns void
drawTexture
- drawTexture(texture, pos, sizeX, sizeY, color?): void
-
Parameters
-
-
-
sizeX: number
-
sizeY: number
-
Optional
color: Color
Returns void
fillRect
- fillRect(rect, color, radius?): void
-
Returns void
getTextSize
- getTextSize(text, textSize): Vector2
-
Parameters
-
text: string
-
textSize: number
restoreClippingRect
- restoreClippingRect(): void
-
Returns void
setClippingRect
- setClippingRect(rect): void
-
Returns void
use
- use(renderer): void
-
Parameters
-
renderer: "dx" | "minecraft"
Returns void
Draws text on the position specified