code: function (canvas) {
      this.width = canvas.width;
      this.height = canvas.height;
      var ctx = canvas.getContext('2d');
      this._data = ctx.getImageData(0, 0, this.width, this.height);
      this.array = this._data.data;
  }
docs: IMAGE PIXELS.