Skip to content

Commit ea719a2

Browse files
committed
Pass x and y in with the bitmap object.
1 parent 752d2b9 commit ea719a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ function bitmap (width, height, byteWidth, bitsPerPixel, bytesPerPixel, image)
1414
this.image = image;
1515
}
1616

17-
bitmap.prototype.color = function()
17+
bitmap.prototype.color = function(x, y)
1818
{
19-
return robotjs.getColor(this);
19+
return robotjs.getColor(this, x, y);
2020
};
2121

2222
module.exports.screen.capture = function()

0 commit comments

Comments
 (0)