46 fl::Blend2dPtr fxBlend =
48 int width =
xymap.getWidth();
49 int height =
xymap.getHeight();
56 blend_stack->add(wave_fx_low);
57 blend_stack->add(wave_fx_high);
59 .wave_fx_low = wave_fx_low,
60 .wave_fx_high = wave_fx_high,
61 .blend_stack = blend_stack,
WaveEffect NewWaveSimulation2D(const fl::XYMap &xymap)
fl::WaveFx::Args CreateArgsUpper()
fl::WaveFx::Args CreateArgsLower()
static XYMap constructRectangularGrid(u16 width, u16 height, u16 offset=0) FL_NOEXCEPT
#define DEFINE_GRADIENT_PALETTE(X)
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
float speed
Wave propagation speed (0.0-1.0, typical: 0.1-0.3)
WaveCrgbMapPtr crgbMap
Custom color mapper (nullptr uses default grayscale)
bool auto_updates
If true, simulation advances automatically in draw()
SuperSample factor
Supersampling quality (SUPER_SAMPLE_2X recommended for balance)
float dampening
Energy dampening factor (higher = faster decay, typical: 3-10)
bool half_duplex
If true, constrains waves to positive values only.