FastLED 3.9.15
Loading...
Searching...
No Matches

◆ draw()

void fl::Frame::draw ( CRGB * leds,
DrawMode draw_mode = DRAW_MODE_OVERWRITE ) const

Definition at line 29 of file frame.cpp.

29 {
30 if (mRgb) {
31 switch (draw_mode) {
33 memcpy(leds, mRgb.get(), mPixelsCount * sizeof(CRGB));
34 break;
35 }
37 for (size_t i = 0; i < mPixelsCount; ++i) {
39 }
40 break;
41 }
42 }
43 }
44}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
fl::scoped_array< CRGB > mRgb
Definition frame.h:43
const size_t mPixelsCount
Definition frame.h:42
@ DRAW_MODE_BLEND_BY_BLACK
Definition frame.h:19
@ DRAW_MODE_OVERWRITE
Definition frame.h:18
static CRGB blendAlphaMaxChannel(const CRGB &upper, const CRGB &lower)
Definition crgb.cpp:58

References CRGB::blendAlphaMaxChannel(), fl::DRAW_MODE_BLEND_BY_BLACK, fl::DRAW_MODE_OVERWRITE, leds, mPixelsCount, and mRgb.

Referenced by fl::FrameInterpolator::draw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: