Sparkfire pattern doesn't work

The sparkfire pattern doesn’t work for me.
I’m running a strip of 60 APA102 LEDs on the latest PixelBlaze 2.23. All other patterns I’ve tried work fine.

Hey!

I’m guessing you’re seeing a mostly white output? I’ve noticed that pattern can be fairly dependent on total number of pixels. It’s default settings seem to look best on 240 pixel strips.

For 60 pixels, try these settings:

numSparks = 4 // Default is 5
accel = .03
speed = .05
cooling1 = .1 // subtractive cooling, default was 0.04
cooling2 = .9 // coefficient cooling, default was 0.99
2 Likes

@jeff that fixed it, thanks!