function getPixelAt(x, y) {
  const bw = this.bounds.w;
  const bh = this.bounds.h;
  // normalize coordinates
  const dx = (x - this.x) | 0;
  const dy = (y - this.y) | 0;
  const xx = dx - this.bounds.x;
  const yy = dy - this.bounds.y;
  // check if point inside boundings
  if (
    (xx < 0 || yy < 0) ||
    (bw <= 0 || bh <= 0) ||
    (xx >= bw || yy >= bh)
  ) return (null);
  // now get the pixel from the layer matrix
  return (this.batch.getRawPixelAt(dx, dy));
}
Access raw pixel
@param {Number} x
@param {Number} y
@return {Array}