FastLED 3.9.15
Loading...
Searching...
No Matches

◆ coolLikeIncandescentFunction()

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

Definition at line 222 of file twinklefox.h.

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

Referenced by computeOneTwinkle().

+ Here is the caller graph for this function: