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

◆ add() [2/2]

void fl::Blend2d::add ( Fx2dPtr layer,
const Params & p = Params() )

Definition at line 38 of file blend.cpp.hpp.

38 {
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}
vector< Entry > mLayers
Definition blend.h:57
XYMap & getXYMap()
Definition fx2d.h:26
static XYMap constructRectangularGrid(u16 width, u16 height, u16 offset=0) FL_NOEXCEPT
Definition xymap.cpp.hpp:35
#define FL_WARN(X)
Definition log.h:276
unsigned char u8
Definition stdint.h:131
Definition blend.h:49

References fl::Blend2dParams::blur_amount, fl::Blend2dParams::blur_passes, fl::XYMap::constructRectangularGrid(), FL_WARN, fl::Fx2d::getXYMap(), and mLayers.

Referenced by add().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: