-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiZoneSetColorZones() does not support CSS (as per LifxLanColor) #11
Comments
Thank you for your feedback. The I updated this module. Now the method accepts a Try the latest version. |
It works! One last thing: is there an option to override the brightness of a colour? |
RGB intrinsically includes the factor of brightness. CSS color based on RGB also does.
If you want to specify brightness independently, you should use HSB color. |
That’s what I was thinking. Any chance to module exports the lifx-lan-color.js library? Or to access it using the public api of the package as is.. so I don’t have to implement my own RGB-HSB converter |
Let me ask same questions:
I have an idea to calculate HSB from RGB + brightness. But I'm not sure that my idea is compatible with the lifx-lab-colors library. |
Sorry, that was a typo. I meant: I'd like to use your lifx-lan-color.js package to convert RGB to HSB and override the brightness after the conversion has been calculated. Is that file exported or its API accessible using the main package? |
Oh, lifx-lan-color.js is my my own. I thought it is LIFX official SDK or something. Sorry not to noticed that. I'll try to implement your request. Give me some time. |
I added the Thank you. |
It works, thanks! Here's how I'm using your package: https://github.com/paolotremadio/homebridge-automation-lifx-colour-palettes |
Hi,
I've been trying to use the multiZoneSetColorZones() that should accept as
color
the classLifxLanColor
.It looks like the
color
property is not transformed properly as it only acceptsLifxLanColorHSB
objects. I've been trying to useLifxLanColorCSS
without success.Example:
Error:
The text was updated successfully, but these errors were encountered: