My experience is that LED strips try to be as close as possible to the linear brightness scale, some even use high-speed PWM to achieve that. (like the sk6805/sk6812)
Therefore I propose two things:
Reword the documentation
Implement From<palette::LinSrgb<u8>> for RGB8, and similar for the other types.Edit: I realized that the color types are only re-imported, so From cannot be implemented for them.
Quote from the documentation of
RGB8
:This is incorrect. Most LED strips use Linear sRGB, not normal, gamma corrected sRGB color space.
More detail about the difference can be found here: https://matt77hias.github.io/blog/2018/07/01/linear-gamma-and-sRGB-color-spaces.html
My experience is that LED strips try to be as close as possible to the linear brightness scale, some even use high-speed PWM to achieve that. (like the sk6805/sk6812)
Therefore I propose two things:
ImplementEdit: I realized that the color types are only re-imported, soFrom<palette::LinSrgb<u8>>
forRGB8
, and similar for the other types.From
cannot be implemented for them.