|
@ -22,39 +22,39 @@ struct RgbwLevelsByTemperature { |
|
|
using RgbwLevelsTable = std::array<RgbwLevelsByTemperature, 15>; |
|
|
using RgbwLevelsTable = std::array<RgbwLevelsByTemperature, 15>; |
|
|
|
|
|
|
|
|
static const RgbwLevelsTable rgbw_levels_1_ {{ |
|
|
static const RgbwLevelsTable rgbw_levels_1_ {{ |
|
|
{ 501.0f, 87.3f, 90.7f, 100.0f, 6.3f }, |
|
|
|
|
|
{ 455.0f, 87.3f, 89.6f, 100.0f, 6.3f }, |
|
|
|
|
|
{ 417.0f, 87.3f, 89.1f, 100.0f, 6.8f }, |
|
|
|
|
|
{ 371.0f, 87.3f, 88.0f, 100.0f, 7.0f }, |
|
|
|
|
|
{ 334.0f, 87.3f, 88.7f, 100.0f, 8.8f }, |
|
|
|
|
|
{ 313.0f, 88.2f, 90.4f, 100.0f, 12.8f }, |
|
|
|
|
|
{ 295.0f, 94.7f, 100.0f, 96.8f, 14.5f }, |
|
|
|
|
|
{ 251.0f, 99.9f, 100.0f, 100.0f, 15.5f }, |
|
|
|
|
|
{ 223.0f, 100.0f, 89.9f, 92.1f, 13.0f }, |
|
|
|
|
|
{ 201.0f, 100.0f, 87.3f, 90.8f, 11.5f }, |
|
|
|
|
|
{ 182.0f, 100.0f, 87.3f, 90.1f, 10.3f }, |
|
|
|
|
|
{ 173.0f, 100.0f, 87.3f, 90.4f, 9.4f }, |
|
|
|
|
|
{ 167.0f, 100.0f, 87.3f, 89.1f, 9.8f }, |
|
|
|
|
|
{ 154.0f, 100.0f, 87.3f, 89.4f, 9.0f }, |
|
|
|
|
|
{ 153.0f, 100.0f, 87.3f, 89.2f, 8.8f } |
|
|
|
|
|
|
|
|
{ 501.0f, 0.873f, 0.907f, 1.000f, 0.063f }, |
|
|
|
|
|
{ 455.0f, 0.873f, 0.896f, 1.000f, 0.063f }, |
|
|
|
|
|
{ 417.0f, 0.873f, 0.891f, 1.000f, 0.068f }, |
|
|
|
|
|
{ 371.0f, 0.873f, 0.880f, 1.000f, 0.070f }, |
|
|
|
|
|
{ 334.0f, 0.873f, 0.887f, 1.000f, 0.088f }, |
|
|
|
|
|
{ 313.0f, 0.882f, 0.904f, 1.000f, 0.128f }, |
|
|
|
|
|
{ 295.0f, 0.947f, 1.000f, 0.968f, 0.145f }, |
|
|
|
|
|
{ 251.0f, 0.999f, 1.000f, 1.000f, 0.155f }, |
|
|
|
|
|
{ 223.0f, 1.000f, 0.899f, 0.921f, 0.130f }, |
|
|
|
|
|
{ 201.0f, 1.000f, 0.873f, 0.908f, 0.115f }, |
|
|
|
|
|
{ 182.0f, 1.000f, 0.873f, 0.901f, 0.103f }, |
|
|
|
|
|
{ 173.0f, 1.000f, 0.873f, 0.904f, 0.094f }, |
|
|
|
|
|
{ 167.0f, 1.000f, 0.873f, 0.891f, 0.098f }, |
|
|
|
|
|
{ 154.0f, 1.000f, 0.873f, 0.894f, 0.090f }, |
|
|
|
|
|
{ 153.0f, 1.000f, 0.873f, 0.892f, 0.088f } |
|
|
}}; |
|
|
}}; |
|
|
|
|
|
|
|
|
static const RgbwLevelsTable rgbw_levels_100_ {{ |
|
|
static const RgbwLevelsTable rgbw_levels_100_ {{ |
|
|
{ 501.0f, 0.0f, 34.4f, 100.0f, 6.8f }, |
|
|
|
|
|
{ 455.0f, 0.0f, 23.7f, 100.0f, 9.3f }, |
|
|
|
|
|
{ 417.0f, 0.0f, 18.6f, 100.0f, 12.0f }, |
|
|
|
|
|
{ 371.0f, 0.0f, 14.9f, 100.0f, 16.7f }, |
|
|
|
|
|
{ 334.0f, 0.0f, 13.5f, 100.0f, 32.5f }, |
|
|
|
|
|
{ 313.0f, 9.7f, 31.4f, 100.0f, 74.0f }, |
|
|
|
|
|
{ 295.0f, 74.5f, 100.0f, 95.3f, 90.5f }, |
|
|
|
|
|
{ 251.0f, 100.0f, 100.0f, 100.0f, 100.0f }, |
|
|
|
|
|
{ 223.0f, 100.0f, 26.7f, 48.5f, 76.5f }, |
|
|
|
|
|
{ 201.0f, 100.0f, 0.0f, 35.5f, 60.9f }, |
|
|
|
|
|
{ 182.0f, 100.0f, 0.0f, 28.2f, 48.9f }, |
|
|
|
|
|
{ 173.0f, 100.0f, 0.0f, 31.3f, 39.2f }, |
|
|
|
|
|
{ 167.0f, 100.0f, 0.0f, 18.0f, 42.2f }, |
|
|
|
|
|
{ 154.0f, 100.0f, 0.0f, 21.8f, 36.8f }, |
|
|
|
|
|
{ 153.0f, 100.0f, 0.0f, 18.7f, 33.5f } |
|
|
|
|
|
|
|
|
{ 501.0f, 0.000f, 0.344f, 1.000f, 0.068f }, |
|
|
|
|
|
{ 455.0f, 0.000f, 0.237f, 1.000f, 0.093f }, |
|
|
|
|
|
{ 417.0f, 0.000f, 0.186f, 1.000f, 0.120f }, |
|
|
|
|
|
{ 371.0f, 0.000f, 0.149f, 1.000f, 0.167f }, |
|
|
|
|
|
{ 334.0f, 0.000f, 0.135f, 1.000f, 0.325f }, |
|
|
|
|
|
{ 313.0f, 0.097f, 0.314f, 1.000f, 0.740f }, |
|
|
|
|
|
{ 295.0f, 0.745f, 1.000f, 0.953f, 0.905f }, |
|
|
|
|
|
{ 251.0f, 1.000f, 1.000f, 1.000f, 1.000f }, |
|
|
|
|
|
{ 223.0f, 1.000f, 0.267f, 0.485f, 0.765f }, |
|
|
|
|
|
{ 201.0f, 1.000f, 0.000f, 0.355f, 0.609f }, |
|
|
|
|
|
{ 182.0f, 1.000f, 0.000f, 0.282f, 0.489f }, |
|
|
|
|
|
{ 173.0f, 1.000f, 0.000f, 0.313f, 0.392f }, |
|
|
|
|
|
{ 167.0f, 1.000f, 0.000f, 0.180f, 0.422f }, |
|
|
|
|
|
{ 154.0f, 1.000f, 0.000f, 0.218f, 0.368f }, |
|
|
|
|
|
{ 153.0f, 1.000f, 0.000f, 0.187f, 0.335f } |
|
|
}}; |
|
|
}}; |
|
|
|
|
|
|
|
|
class WhiteLight |
|
|
class WhiteLight |
|
|