Definition at line 60 of file fx_compositor.h.
62 {
64 return;
65 }
68 if (!progress) {
69 fl::span<CRGB> surface0 =
mLayers[0]->getSurface();
71 return;
72 }
74 fl::span<CRGB> surface0 =
mLayers[0]->getSurface();
75 fl::span<CRGB> surface1 =
mLayers[1]->getSurface();
76
77 for (fl::u32 i = 0; i <
mNumLeds; i++) {
78 const CRGB &p0 = surface0[i];
79 const CRGB &p1 = surface1[i];
81 finalBuffer[i] = out;
82 }
83 if (progress == 255) {
85 }
86}
void completeTransition()
const T * data() const FL_NOEXCEPT
void * memcpy(void *dest, const void *src, size_t n) FL_NOEXCEPT
static CRGB blend(const CRGB &p1, const CRGB &p2, fract8 amountOfP2) FL_NOEXCEPT
References fl::CRGB::blend(), completeTransition(), fl::span< T, Extent >::data(), fl::memcpy(), mLayers, mNumLeds, mTransition, and speed.