Searching the web, the only reference for color conversion that I found (excluding a c++ sample for rgb to rgbw conversion that, based on my understanding, must have some severe bug) is this article that shows a conversion from HSI to RGBW, which is the inverse of what I needed: link here To represent the current light color on my interface I would like to translate the RGBW color returned by the service to a more standard RGB/HSB scheme. The provider works with RGBW colors – the four component for Red, Green, Blue and White are used. ![]() For setting the color and retrieving it I must use a command provider that enables me to send and receive commands via a web service. To be more clear – I am working on some c# code that should retrieve the currently selected color and display it in the UI, and enable the user to specify a new color for the light. The light I am currently using is an RGBW led strip – specifically, I am working with a low-cost RGBW light: the light is composed by four led and every led can be controlled individually. I managed to control standard on/off and dimmable light for various providers with little problem, but now I am stuck with a problem related to RGB light. I am building an interface for light management in a home automation system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |