From f59eef7d9a9dd5d22e91d4cd596264987d4830df Mon Sep 17 00:00:00 2001 From: Edgar To Date: Sun, 24 Jul 2016 18:26:56 +0200 Subject: [PATCH] colorsys.hsv_to_rgb provides the values from 0-255 instead of 0-1 --- index.js | 4 ---- package.json | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/index.js b/index.js index 7db54e1..e590543 100644 --- a/index.js +++ b/index.js @@ -32,10 +32,6 @@ RgbAccessory.prototype.setColor = function() { color.b = 0; } - color.r = Math.round( color.r * 255 ); - color.g = Math.round( color.g * 255 ); - color.b = Math.round( color.b * 255 ); - this.log( "set color to", color.r, color.g, color.b ); }; diff --git a/package.json b/package.json index 885afa9..f292c9a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-fake-rgb", - "version": "0.0.2", + "version": "0.0.3", "description": "Fake RGB Bulb plugin for homebridge: https://github.com/nfarina/homebridge", "license": "MIT", "keywords": [