78 {
79 if (frame1.size() != frame2.size()) {
80 return;
81 }
82
83 const CRGB *rgbFirst = frame1.rgb();
84 const CRGB *rgbSecond = frame2.rgb();
85
86 if (frame1.mRgb.empty() || frame2.mRgb.empty()) {
87
88 return;
89 }
90
91 for (size_t i = 0; i < frame2.size(); ++i) {
92 pixels[i] =
CRGB::blend(rgbFirst[i], rgbSecond[i], amountofFrame2);
93 }
94
95}
static CRGB blend(const CRGB &p1, const CRGB &p2, fract8 amountOfP2)