LIFX / lifx-protocol-docs

LIFX LAN protocol V2 documentation
116 stars 16 forks source link

HSBK Interpretation? #4

Closed autolog closed 9 years ago

autolog commented 9 years ago

Is there documentation available on how to interpret the HSBK values in relation to say the iOS app?

For example, when in colour mode, when I set the wheel to 50% in the iOS app, the B value is coming back as 100% (0xFFFF). Increasing the wheel to 75% leaves the B value at 100% and decreases the saturation value. I was just wondering if there is an algorithm documented as to how the iOS app decides how to interpret the wheel values and what HSBK values to set?

tatey commented 9 years ago

Internally we've been referring to this behaviour as intensity. When adjusting the ball slider on the colour wheel you're adjusting the intensity of the colour which is a combination of brightness and saturation. After 50% intensity we linearly decrease saturation while continuing to increase brightness. On iOS the minimum saturation is 20%. This behaviour only applies to colour and may change in a future release of our apps.

Example:

autolog commented 9 years ago

Thanks - that is very helpful :+1: