Skip to content

Commit

Permalink
Added a parameter for blur amount in the Fire 2012 effect.
Browse files Browse the repository at this point in the history
  • Loading branch information
apanteleev committed Jul 27, 2024
1 parent 3615ab5 commit 5134ef9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wled00/FX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2020,14 +2020,17 @@ uint16_t mode_fire_2012() {
for (int stripNr=0; stripNr<strips; stripNr++)
virtualStrip::runStrip(stripNr, &heat[stripNr * SEGLEN], it);

if (SEGMENT.is2D()) SEGMENT.blur(32);
if (SEGMENT.is2D()) {
uint8_t blurAmount = SEGMENT.custom2 >> 2;
SEGMENT.blur(blurAmount);
}

if (it != SEGENV.step)
SEGENV.step = it;

return FRAMETIME;
}
static const char _data_FX_MODE_FIRE_2012[] PROGMEM = "Fire 2012@Cooling,Spark rate,,,Boost;;!;1;sx=64,ix=160,m12=1"; // bars
static const char _data_FX_MODE_FIRE_2012[] PROGMEM = "Fire 2012@Cooling,Spark rate,,2D Blur,Boost;;!;1;sx=64,ix=160,m12=1,c2=128"; // bars


// ColorWavesWithPalettes by Mark Kriegsman: https://gist.github.com/kriegsman/8281905786e8b2632aeb
Expand Down

0 comments on commit 5134ef9

Please sign in to comment.