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

Method setParams

src/fl/fx/2d/blend.cpp.hpp:106–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104void Blend2d::clear() { mLayers.clear(); }
105
106bool Blend2d::setParams(Fx2dPtr fx, const Params &p) {
107 u8 blur_amount = p.blur_amount;
108 u8 blur_passes = p.blur_passes;
109 for (auto &layer : mLayers) {
110 if (layer.fx == fx) {
111 layer.blur_amount = blur_amount;
112 layer.blur_passes = blur_passes;
113 return true;
114 }
115 }
116
117 FL_WARN("Fx2d not found in Blend2d::setBlurParams");
118 return false;
119}
120
121bool Blend2d::setParams(Fx2d &fx, const Params &p) {
122

Callers 1

uiFunction · 0.45

Calls 1

make_shared_no_trackingFunction · 0.85

Tested by

no test coverage detected