code: function (x, y) {
          var i = (y * this.size.w + x) * this.bytes;
          var res = [this.image[i], this.image[i + 1], this.image[i + 2], this.image[i + 3]];
          return res;
      }
docs: Method: getPixelColor
  Get color by screen coordinates