Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Tile

Index

Constructors

  • 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

    Returns Tile

Properties

canvas2DRenderer: any
dHeight: number
dWidth: number
fillStyle: string
height: number
lineWidth: number
positions: number[][]
repeat: string
sHeight: number
sImage: any
sWidth: number
strokeStyle: string
width: number

Methods

  • 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