596 {
597
598 fl::u8 index_5bit = (index >> 11);
599
601
604 fl::u8 green1 = entry.green;
605 fl::u8 blue1 = entry.blue;
606
609 if (index_5bit == 31) {
611 } else {
613 }
614
615
616
618 red1 = scale8_LEAVING_R1_DIRTY(red1, f1);
619 green1 = scale8_LEAVING_R1_DIRTY(green1, f1);
620 blue1 = scale8_LEAVING_R1_DIRTY(blue1, f1);
621
622
624 fl::u8 green2 = entry.green;
625 fl::u8 blue2 = entry.blue;
626 red2 = scale8_LEAVING_R1_DIRTY(red2,
offset);
627 green2 = scale8_LEAVING_R1_DIRTY(green2,
offset);
628 blue2 = scale8_LEAVING_R1_DIRTY(blue2,
offset);
629 cleanup_R1();
630
631
632 red1 += red2;
633 green1 += green2;
634 blue1 += blue2;
635 }
637
639 }
640 return CRGB(red1, green1, blue1);
641}
fl::UISlider brightness("Brightness", BRIGHTNESS, 0, 255)
fl::UISlider offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
#define FL_PGM_READ_DWORD_NEAR(x)
Read a double word (32-bit) from PROGMEM memory.
CRGB blend(const CRGB &p1, const CRGB &p2, fract8 amountOfP2)
Representation of an 8-bit RGB pixel (Red, Green, Blue)