pingy.js
function(x, y) {
      var i = this._getIndex(x, y);

      return {
        r: this._png.data[i + 0],
        g: this._png.data[i + 1],
        b: this._png.data[i + 2],
        a: this._png.data[i + 3]
      };
    }
function(x, y) {
      var i = this._getIndex(x, y);

      return {
        r: this._png.data[i + 0],
        g: this._png.data[i + 1],
        b: this._png.data[i + 2],
        a: this._png.data[i + 3]
      };
    }
function ( x , y ) { var i = this . _getIndex ( x , y ) ; return { r : this . _png . data [ i + 0 ] , g : this . _png . data [ i + 1 ] , b : this . _png . data [ i + 2 ] , a : this . _png . data [ i + 3 ] } ; }
Get the RGBA value of a coordinate

@param {Number} x - x coordinate
@param {Number} y - y coordinate
@return {Object} RGBA value
Get the RGBA value of a coordinate