Methods
begin
-
Returns void
clear
-
Returns void
draw
-
Parameters
Returns void
drawImage
- drawImage(surface: Surface, offsetX: number, offsetY: number, width: number, height: number, destOffsetX: number, destOffsetY: number): void
-
Parameters
-
-
offsetX: number
-
offsetY: number
-
width: number
-
height: number
-
destOffsetX: number
-
destOffsetY: number
Returns void
drawSprites
- drawSprites(surface: Surface, offsetX: number[], offsetY: number[], width: number[], height: number[], canvasOffsetX: number[], canvasOffsetY: number[], count: number): void
-
Parameters
-
-
offsetX: number[]
-
offsetY: number[]
-
width: number[]
-
height: number[]
-
canvasOffsetX: number[]
-
canvasOffsetY: number[]
-
count: number
Returns void
drawSystemText
- drawSystemText(text: string, x: number, y: number, maxWidth: number, fontSize: number, textAlign: TextAlign, textBaseline: TextBaseline, textColor: string, fontFamily: FontFamily, strokeWidth: number, strokeColor: string, strokeOnly: boolean): void
-
Parameters
-
text: string
-
x: number
-
y: number
-
maxWidth: number
-
fontSize: number
-
-
-
textColor: string
-
-
strokeWidth: number
-
strokeColor: string
-
strokeOnly: boolean
Returns void
end
-
Returns void
fillRect
- fillRect(x: number, y: number, width: number, height: number, cssColor: string): void
-
Parameters
-
x: number
-
y: number
-
width: number
-
height: number
-
cssColor: string
Returns void
opacity
- opacity(opacity: number): void
-
Parameters
Returns void
restore
-
Returns void
save
-
Returns void
setCompositeOperation
-
Parameters
Returns void
setOpacity
- setOpacity(opacity: number): void
-
Parameters
Returns void
setTransform
- setTransform(matrix: number[]): void
-
Parameters
Returns void
transform
- transform(matrix: number[]): void
-
Parameters
Returns void
translate
- translate(x: number, y: number): void
-
Parameters
Returns void