From cf2ec13a83816591461d6f0cd8979b1650ae0908 Mon Sep 17 00:00:00 2001 From: Remiii Date: Sun, 8 Nov 2015 10:42:31 +0100 Subject: [PATCH] Fix RGB to HSV converter --- lib/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/helpers.js b/lib/helpers.js index 525955a..ae82e3d 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -51,7 +51,7 @@ exports.rgb2hsv = function(r, g, b) { saturation = 1 - (min/max); } - return [Math.round(hue), Math.round(saturation), Math.round(value)]; + return [Math.round(hue), saturation, value]; } exports.parseHueResponse = function(r) { @@ -61,4 +61,4 @@ exports.parseHueResponse = function(r) { } return [null,r]; -} \ No newline at end of file +}