sprite
: { create
: ((position
: Point, size
: Size, rotation
?: number, texture
: HTMLImageElement, colour
?: string) => Sprite); }
Type declaration
-
create: ((position: Point, size: Size, rotation?: number, texture: HTMLImageElement, colour?: string) => Sprite)
-
- (position: Point, size: Size, rotation?: number, texture: HTMLImageElement, colour?: string): Sprite
-
Parameters
-
-
-
rotation: number = 0
-
texture: HTMLImageElement
-
colour: string = '#ffffff'