function pasteAt(x, y, sel) {
  const pixels = sel.pixels;
  if (pixels === null || !pixels.length) return;
  const layer = this.getCurrentLayer();
  const batch = layer.createBatchAt(x, y);
  batch.resizeRectangular(
    x, y,
    sel.w - 1, sel.h - 1
  );
  for (let ii = 0; ii < pixels.length; ++ii) {
    const pixel = pixels[ii];
    const color = pixel.color;
    batch.drawPixelFast(x + pixel.x, y + pixel.y, color);
  };
  batch.refreshTexture(false);
  this.enqueue(CommandKind.PASTE, batch);
  return;
}
@param {Number} x
@param {Number} y
@param {Object} sel
@return {Void}