Skip to content

Commit

Permalink
Pass x and y in with the bitmap object.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Oct 6, 2015
1 parent 752d2b9 commit ea719a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ function bitmap (width, height, byteWidth, bitsPerPixel, bytesPerPixel, image)
this.image = image;
}

bitmap.prototype.color = function()
bitmap.prototype.color = function(x, y)
{
return robotjs.getColor(this);
return robotjs.getColor(this, x, y);
};

module.exports.screen.capture = function()
Expand Down

0 comments on commit ea719a2

Please sign in to comment.