So, I have a simple sample of a StaticFire style, which i’m testing using color RED. It looks good but at the base there’s random white flashes. I can’t tell where the WHITE is coming from…Is that just a feature of Fire, or is one of the color variations going out of bounds?
StaticFire<
Mix<
SmoothStep<
Scale<
BladeAngle<>,
Int<38000>,
Int<23000>
>,
Int<8000>
>,
Mix<
Int<400>,
Black,
RgbArg<BASE_COLOR_ARG, Rgb<127, 0, 0>>
>,
Mix<
Int<6000>,
Black,
RgbArg<BASE_COLOR_ARG, Rgb<127, 0, 0>>
>
>,
AlphaL<Black, Int<0>>,
0,
2,
4,
2000,
2
>
I see this in the fire.h file
SimpleColor getColor(int led) {
int h = this->heat_[this->num_leds_ - 1 - led];
SimpleColor c;
if (h < 256) {
c.c = Color16().mix(c1_.getColor(led).c, h);
} else if (h < 512) {
c.c = c1_.getColor(led).c.mix(c2_.getColor(led).c, h - 256);
} else if (h < 768) {
c.c = c2_.getColor(led).c.mix(Color16(65535,65535,65535), h - 512);
} else {
c.c = Color16(65535, 65535, 65535);
}
return c;
}