55 heat.resize(num_leds);
73 for (u16 k =
mNumLeds - 1; k >= 2; k--) {
87 u8 colorindex = scale8(
heat[j], 240);
95 leds[pixelnumber] = color;
Fire2012(u16 num_leds, u8 cooling=55, u8 sparking=120, bool reverse_direction=false, const CRGBPalette16 &palette=(const CRGBPalette16 &) HeatColors_p)
void draw(DrawContext context) override
fl::vector_psram< u8 > heat
fl::string fxName() const override
const TProgmemRGBPalette16 HeatColors_p
Approximate "black body radiation" palette, akin to the FastLED HeatColor() function.
LIB8STATIC fl::u8 random8() FL_NOEXCEPT
Generate an 8-bit random number.
CRGB ColorFromPalette(const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType)
Base definition for an LED controller.
#define FASTLED_SHARED_PTR(type)
Representation of an 8-bit RGB pixel (Red, Green, Blue)