7 const uint8_t
hue = this->
hue;
11 const uint8_t offset8 = (
hue & 0x1F) << 3;
13 const uint8_t third = esp_scale8(offset8, 85);
14 const uint8_t two_thirds = esp_scale8(offset8, 170);
15 Color rgb(255, 255, 255, 0);
28 rgb.
r = 171 - two_thirds;
39 rgb.
g = 171 - two_thirds;
40 rgb.
b = 85 + two_thirds;
65 const uint8_t desat = 255 - sat;
66 rgb += esp_scale8(desat, desat);