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

◆ coolLikeIncandescentFunction()

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

Definition at line 226 of file twinklefox.h.

226 {
227 if (phase < 128)
228 return;
229
230 uint8_t cooling = (phase - 128) >> 4;
231 c.g = qsub8(c.g, cooling);
232 c.b = qsub8(c.b, cooling * 2);
233 }
LIB8STATIC_ALWAYS_INLINE uint8_t qsub8(uint8_t i, uint8_t j)
Subtract one byte from another, saturating at 0x00.
Definition math8.h:103

References qsub8().

Referenced by computeOneTwinkle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: