Graphics
: { circle
: ((position
: Point, radius
: number, options
: CircleOptions) => void); clear
: ((colour
?: string) => void); clearRect
: ((rectangle
: Rectangle, colour
?: string) => void); curve
: ((from
: Point, to
: Point, controlPoints
: { cp1
?: Point; cp2
?: Point; }, options
: LineOptions) => void); dodge
: ((drawingOperations
: (() => void)) => void); image
: ((image
: HTMLImageElement, position
: Point, size
: Size) => void); line
: ((from
: Point, to
: Point, options
: LineOptions) => void); overlay
: ((drawingOperations
: (() => void)) => void); rect
: ((rectangle
: Rectangle, options
: RectangleOptions) => void); rotation
: ((drawingOperations
: (() => void), rotation
: number, around
: Point) => void); shadow
: ((drawingOperations
: (() => void), options
?: DropShadowOptions) => void); sprite
: ((sprite
: Sprite) => void); square
: ((position
: Point, size
: number, options
: RectangleOptions) => void); subImage
: ((image
: HTMLImageElement, position
: Point, size
: Size, subPosition
: Point, subSize
: Size) => void); text
: ((position
: Point, text
: string, colour
: string, font
: string) => void); tiles
: ((position
: Point, tileGrid
: number[][], spriteSheets
: Terrain[], scale
: number) => void); transparency
: ((drawingOperations
: (() => void)) => void); }
Type declaration
-
circle: ((position: Point, radius: number, options: CircleOptions) => void)
-
clear: ((colour?: string) => void)
-
- (colour?: string): void
-
Returns void
-
clearRect: ((rectangle: Rectangle, colour?: string) => void)
-
- (rectangle: Rectangle, colour?: string): void
-
Returns void
-
curve: ((from: Point, to: Point, controlPoints: {
cp1?: Point;
cp2?: Point;
}, options: LineOptions) => void)
-
dodge: ((drawingOperations: (() => void)) => void)
-
- (drawingOperations: (() => void)): void
-
Parameters
-
drawingOperations: (() => void)
Returns void
-
image: ((image: HTMLImageElement, position: Point, size: Size) => void)
-
- (image: HTMLImageElement, position: Point, size: Size): void
-
Returns void
-
-
overlay: ((drawingOperations: (() => void)) => void)
-
- (drawingOperations: (() => void)): void
-
Parameters
-
drawingOperations: (() => void)
Returns void
-
-
rotation: ((drawingOperations: (() => void), rotation: number, around: Point) => void)
-
- (drawingOperations: (() => void), rotation: number, around: Point): void
-
Parameters
-
drawingOperations: (() => void)
-
rotation: number
-
Returns void
-
shadow: ((drawingOperations: (() => void), options?: DropShadowOptions) => void)
-
- (drawingOperations: (() => void), options?: DropShadowOptions): void
-
Parameters
-
drawingOperations: (() => void)
-
Returns void
-
sprite: ((sprite: Sprite) => void)
-
- (sprite: Sprite): void
-
Returns void
-
square: ((position: Point, size: number, options: RectangleOptions) => void)
-
subImage: ((image: HTMLImageElement, position: Point, size: Size, subPosition: Point, subSize: Size) => void)
-
- (image: HTMLImageElement, position: Point, size: Size, subPosition: Point, subSize: Size): void
-
Parameters
-
image: HTMLImageElement
-
-
-
subPosition: Point
-
subSize: Size
Returns void
-
text: ((position: Point, text: string, colour: string, font: string) => void)
-
- (position: Point, text: string, colour: string, font: string): void
-
Parameters
-
-
text: string
-
colour: string
-
font: string
Returns void
-
tiles: ((position: Point, tileGrid: number[][], spriteSheets: Terrain[], scale: number) => void)
-
- (position: Point, tileGrid: number[][], spriteSheets: Terrain[], scale: number): void
-
Parameters
-
-
tileGrid: number[][]
-
spriteSheets: Terrain[]
-
scale: number
Returns void
-
transparency: ((drawingOperations: (() => void)) => void)
-
- (drawingOperations: (() => void)): void
-
Parameters
-
drawingOperations: (() => void)
Returns void