Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
colorsys.hsv_to_rgb provides the values from 0-255 instead of 0-1
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Jul 24, 2016
1 parent 6239661 commit f59eef7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit f59eef7

Please sign in to comment.