- Parameters
-
| now | The current time in milliseconds. Fx writers are encouraged to use this instead of millis() directly as this will more deterministic behavior. |
Implements fl::Fx.
Definition at line 56 of file blend.cpp.hpp.
56 {
59
60
61 bool first = true;
64 tmp_ctx.leds =
mFrame->rgb();
65 auto &fx = it->fx;
66 fx->draw(tmp_ctx);
69 first = false;
70
73 const XYMap &
xyMap = fx->getXYMap();
74 u8 blur_passes =
fl::max(1, it->blur_passes);
75 for (
u8 i = 0; i < blur_passes; ++i) {
76
79 }
80 }
82 }
83
85
91 for (
u8 i = 0; i < blur_passes; ++i) {
92
94 }
95 }
96
97
98
99
102}
fl::shared_ptr< Frame > mFrameTransform
fl::shared_ptr< Frame > mFrame
u16 xyMap(u16 x, u16 y) const
::fl::DrawContext DrawContext
static XYMap constructRectangularGrid(u16 width, u16 height, u16 offset=0) FL_NOEXCEPT
constexpr common_type_t< T, U > max(T a, U b) FL_NOEXCEPT
@ DRAW_MODE_BLEND_BY_MAX_BRIGHTNESS
void blur2d(fl::span< CRGB > leds, u8 width, u8 height, fract8 blur_amount, const XYMap &xymap) FL_NOEXCEPT
References fl::blur2d(), fl::blur_amount, fl::XYMap::constructRectangularGrid(), fl::DRAW_MODE_BLEND_BY_MAX_BRIGHTNESS, fl::DRAW_MODE_OVERWRITE, fl::height, fl::DrawContext::leds, fl::max(), mFrame, mFrameTransform, mGlobalBlurAmount, mGlobalBlurPasses, mLayers, fl::Fx2d::mXyMap, fl::width, and fl::Fx2d::xyMap().