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

◆ coolLikeIncandescent()

void coolLikeIncandescent ( CRGB & c,
uint8_t phase )
Examples
TwinkleFox.ino.

Definition at line 272 of file TwinkleFox.ino.

273{
274 if( phase < 128) return;
275
276 uint8_t cooling = (phase - 128) >> 4;
277 c.g = qsub8( c.g, cooling);
278 c.b = qsub8( c.b, cooling * 2);
279}
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: