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

◆ coolLikeIncandescentFunction()

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

Definition at line 224 of file twinklefox.h.

224 {
225 if (phase < 128)
226 return;
227
228 uint8_t cooling = (phase - 128) >> 4;
229 c.g = qsub8(c.g, cooling);
230 c.b = qsub8(c.b, cooling * 2);
231 }
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: