From ea719a2963ec7d2a308d2501d5542eb3f5e61558 Mon Sep 17 00:00:00 2001 From: Jason Stallings Date: Tue, 6 Oct 2015 12:26:14 -0500 Subject: [PATCH] Pass x and y in with the bitmap object. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7dd1c755..4c2c1689 100644 --- a/index.js +++ b/index.js @@ -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()