magicmonkey / lifxjs

JS library for LIFX bulbs
MIT License
274 stars 62 forks source link

Color seems over-specified? #20

Open RussNelson opened 10 years ago

RussNelson commented 10 years ago

The color seems over-specified for an RGBW bulb: {name:"hue" , type:type.uint16_le}, {name:"saturation", type:type.uint16_le}, {name:"brightness", type:type.uint16_le}, {name:"kelvin" , type:type.uint16_le}, hue and saturation specify color one way, but kelvin sets the color another way. Has anybody figured out what color you get for various combinations of these parameters?

PhilWheat commented 10 years ago

You can do lots of mixes with the Hue and Saturation, but you need Kelvin to turn on the whites as far as I’ve been able to work the protocol.

From: Russ Nelson [mailto:notifications@github.com] Sent: Saturday, February 15, 2014 1:05 AM To: magicmonkey/lifxjs Subject: [lifxjs] Color seems over-specified? (#20)

The color seems over-specified for an RGBW bulb: {name:"hue" , type:type.uint16_le}, {name:"saturation", type:type.uint16_le}, {name:"brightness", type:type.uint16_le}, {name:"kelvin" , type:type.uint16_le}, hue and saturation specify color one way, but kelvin sets the color another way. Has anybody figured out what color you get for various combinations of these parameters?

— Reply to this email directly or view it on GitHubhttps://github.com/magicmonkey/lifxjs/issues/20.

riverar commented 10 years ago

Just submitted a pull-request for documentation on a RGBW supportive packet type. Should make things easier! https://github.com/riverar/lifxjs/commit/0c2f9d3c45b3538be0b77b79fbf2be8e44b1f830