Constructors
constructor
- new Tile(canvas2DRenderer: any, sImage: any, sWidth: number, sHeight: number, dWidth: number, dHeight: number, positions?: number[][], width?: number, height?: number, repeat?: string, fillStyle?: string, strokeStyle?: string, lineWidth?: number): Tile
Parameters
canvas2DRenderer: any
sImage: any
sWidth: number
sHeight: number
dWidth: number
dHeight: number
positions: number[][] = ...
width: number = sImage.width
height: number = sImage.height
repeat: string = "no-repeat"
fillStyle: string = "rgba(25.5, 114.75, 114.75, 0)"
strokeStyle: string = "rgba(229.5, 25.5, 25.5, 0)"
lineWidth: number = 2
Properties
canvas2DRenderer
canvas2DRenderer: any
fillStyle
fillStyle: string
lineWidth
lineWidth: number
positions
positions: number[][]
strokeStyle
strokeStyle: string
Methods
draw
- draw(sx: number, sy: number, dx: number, dy: number, sw?: number, sh?: number, dw?: number, dh?: number): void
Parameters
sx: number
sy: number
dx: number
dy: number
sw: number = ...
sh: number = ...
dw: number = ...
dh: number = ...
Returns void