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

Method add

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

Source from the content-addressed store, hash-verified

36}
37
38void Blend2d::add(Fx2dPtr layer, const Params &p) {
39 if (!layer->getXYMap().isRectangularGrid()) {
40 if (!getXYMap().isRectangularGrid()) {
41 FL_WARN("Blend2d has a xymap, but so does the Sub layer " << layer->fxName() << ", the sub layer will have it's map replaced with a rectangular map, to avoid double transformation.");
42 layer->setXYMap(XYMap::constructRectangularGrid(layer->getWidth(), layer->getHeight()));
43 }
44 }
45 u8 blurAmount = p.blur_amount;
46 u8 blurPasses = p.blur_passes;
47 Entry entry(layer, blurAmount, blurPasses);
48 mLayers.push_back(entry);
49}
50
51void Blend2d::add(Fx2d &layer, const Params &p) {
52 Fx2dPtr fx = fl::make_shared_no_tracking(layer);

Callers

nothing calls this directly

Calls 8

make_shared_no_trackingFunction · 0.85
isRectangularGridMethod · 0.80
getXYMapMethod · 0.80
fxNameMethod · 0.45
setXYMapMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected