function ImageWrapper(src, x, y, w, h) {
  this.src = src;
  this.x = x;
  this.y = y;
  this.width = w;
  this.height = h;
  /**
   * Draws the image.
   */
  this.draw = function(ctx) {
    (ctx || context).drawImage(this.src, this.x, this.y, this.width, this.height);
  };
}
/**
 * A wrapper for image tiles so they can be drawn in the right location.
 *
 * Used *internally* by TileMap as a lighter version of a Box.
 *
 * `src` can be any object of type String (e.g. a file path to an image),
 * Image, HTMLImageElement, HTMLCanvasElement, Sprite, or SpriteMap.
 *
 * @ignore
 */
A wrapper for image tiles so they can be drawn in the right location.
Used *internally* by TileMap as a lighter version of a Box.

`src` can be any object of type String ,
Image, HTMLImageElement, HTMLCanvasElement, Sprite, or SpriteMap.

@ignore
A wrapper for image tiles so they can be drawn in the right location . Used * internally * by TileMap as a lighter version of a Box . ` src ` can be any object of type String Image HTMLImageElement HTMLCanvasElement Sprite or SpriteMap . @ignore
function ImageWrapper(src, x, y, w, h) {
  this.src = src;
  this.x = x;
  this.y = y;
  this.width = w;
  this.height = h;
  this.draw = function(ctx) {
    (ctx || context).drawImage(this.src, this.x, this.y, this.width, this.height);
  };
}
function ImageWrapper ( src , x , y , w , h ) { this . src = src ; this . x = x ; this . y = y ; this . width = w ; this . height = h ; this . draw = function ( ctx ) { ( ctx || context ) . drawImage ( this . src , this . x , this . y , this . width , this . height ) ; } ; }
A wrapper for image tiles so they can be drawn in the right location.
A wrapper for image tiles so they can be drawn in the right location .
/**
   * Draws the image.
   */