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

◆ clear()

void fl::Frame::clear ( )

Definition at line 101 of file frame.cpp.hpp.

101 {
102 if (mPixelsCount > 0 && !mRgb.empty()) {
103 fl::memset((u8*)mRgb.data(), 0, mPixelsCount * sizeof(CRGB));
104 }
105}
fl::vector_psram< CRGB > mRgb
Definition frame.h:65
const size_t mPixelsCount
Definition frame.h:64
unsigned char u8
Definition stdint.h:131
fl::CRGB CRGB
Definition video.h:15
void * memset(void *s, int c, size_t n) FL_NOEXCEPT

References fl::memset(), mPixelsCount, and mRgb.

+ Here is the call graph for this function: