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 26 of file frame.cpp.

26 {
27 if (!mRgb.empty()) {
28 switch (draw_mode) {
30 memcpy(leds, mRgb.data(), mPixelsCount * sizeof(CRGB));
31 break;
32 }
34 for (size_t i = 0; i < mPixelsCount; ++i) {
36 }
37 break;
38 }
39 }
40 }
41}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
fl::vector< CRGB, fl::allocator_psram< CRGB > > mRgb
Definition frame.h:45
const size_t mPixelsCount
Definition frame.h:44
@ DRAW_MODE_BLEND_BY_MAX_BRIGHTNESS
Definition draw_mode.h:5
@ DRAW_MODE_OVERWRITE
Definition draw_mode.h:5
static CRGB blendAlphaMaxChannel(const CRGB &upper, const CRGB &lower)
Definition crgb.cpp:59

References CRGB::blendAlphaMaxChannel(), fl::DRAW_MODE_BLEND_BY_MAX_BRIGHTNESS, 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: