MCPcopy Create free account
hub / github.com/FastLED/FastLED / clear

Method clear

src/fl/fx/frame.cpp.hpp:101–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void Frame::clear() {
102 if (mPixelsCount > 0 && !mRgb.empty()) {
103 fl::memset((u8*)mRgb.data(), 0, mPixelsCount * sizeof(CRGB));
104 }
105}
106
107void Frame::interpolate(const Frame &frame1, const Frame &frame2,
108 u8 amountofFrame2, fl::span<CRGB> pixels) {

Callers 2

drawMethod · 0.45
beginMethod · 0.45

Calls 3

memsetFunction · 0.85
emptyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected