Skip to content

Commit

Permalink
Merge pull request Aircoookie#4078 from apanteleev/fire-blur-control
Browse files Browse the repository at this point in the history
Add a parameter for blur amount in the Fire 2012 effect
  • Loading branch information
blazoncek authored and softhack007 committed Aug 8, 2024
1 parent ca50bca commit 17b648f
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 @@ -2156,14 +2156,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.5d;sx=64,ix=160,m12=1"; // bars WLEDMM 1.5d,
static const char _data_FX_MODE_FIRE_2012[] PROGMEM = "Fire 2012@Cooling,Spark rate,,2D Blur,Boost;;!;1.5d;sx=64,ix=160,m12=1,c2=128"; // bars WLEDMM 1.5d,


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

0 comments on commit 17b648f

Please sign in to comment.