From c27054ee93adda85b22f732678f1767708243316 Mon Sep 17 00:00:00 2001 From: Jason Stallings Date: Tue, 6 Oct 2015 10:07:42 -0500 Subject: [PATCH] Export getColor. --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 04ce2c00..7dd1c755 100644 --- a/index.js +++ b/index.js @@ -14,6 +14,11 @@ function bitmap (width, height, byteWidth, bitsPerPixel, bytesPerPixel, image) this.image = image; } +bitmap.prototype.color = function() +{ + return robotjs.getColor(this); +}; + module.exports.screen.capture = function() { b = robotjs.captureScreen();