FastLED 3.10.8
Loading...
Searching...
No Matches

◆ coolLikeIncandescentFunction()

void fl::TwinkleFox::coolLikeIncandescentFunction ( CRGB & c,
u8 phase )
inlineprivate

Definition at line 224 of file twinklefox.h.

224 {
225 if (phase < 128)
226 return;
227
228 u8 cooling = (phase - 128) >> 4;
229 c.g = qsub8(c.g, cooling);
230 c.b = qsub8(c.b, cooling * 2);
231 }
unsigned char u8
Definition stdint.h:131

References fl::FL_NO_EXCEPT.

Referenced by computeOneTwinkle().

+ Here is the caller graph for this function: