DrMemCS / drmem

Full source tree for the DrMem control system
MIT License
3 stars 4 forks source link

Add `Color` to `device::Value` #96

Closed rneswold closed 11 months ago

rneswold commented 11 months ago

In order to support LED bulbs, we need to be able to specify colors.

rneswold commented 11 months ago

The very excellent palette crate has a lot of information about managing color. We'll use it to provide expert color support in DrMem. I know the Philips Hue bulbs mention xyY color space (instead of RGB) and the palette crate's documentation says the xyY color space can provide a natural pathway when switching from one color to another. So maybe the internal value should use xyY?