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

25 {
26 if (!mRgb.empty()) {
27 switch (draw_mode) {
29 memcpy(leds, mRgb.data(), mPixelsCount * sizeof(CRGB));
30 break;
31 }
33 for (size_t i = 0; i < mPixelsCount; ++i) {
35 }
36 break;
37 }
38 }
39 }
40}
CRGB leds[NUM_LEDS]
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:60

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: