541 {
542
543 fl::u8 index_4bit = index >> 12;
544
546
549 fl::u8 green1 = entry.green;
550 fl::u8 blue1 = entry.blue;
551
554 if (index_4bit == 15) {
556 } else {
558 }
559
560
561
563 red1 = scale8_LEAVING_R1_DIRTY(red1, f1);
564 green1 = scale8_LEAVING_R1_DIRTY(green1, f1);
565 blue1 = scale8_LEAVING_R1_DIRTY(blue1, f1);
566
567
569 fl::u8 green2 = entry.green;
570 fl::u8 blue2 = entry.blue;
571 red2 = scale8_LEAVING_R1_DIRTY(red2,
offset);
572 green2 = scale8_LEAVING_R1_DIRTY(green2,
offset);
573 blue2 = scale8_LEAVING_R1_DIRTY(blue2,
offset);
574 cleanup_R1();
575
576
577 red1 += red2;
578 green1 += green2;
579 blue1 += blue2;
580 }
582
584 }
585 return CRGB(red1, green1, blue1);
586}
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)