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

◆ dim8_lin()

LIB8STATIC uint8_t dim8_lin ( uint8_t x)

Linear version of the dimming function that halves for values < 128.

Definition at line 710 of file scale8.h.

710 {
711 if (x & 0x80) {
712 x = scale8(x, x);
713 } else {
714 x += 1;
715 x /= 2;
716 }
717 return x;
718}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
LIB8STATIC_ALWAYS_INLINE uint8_t scale8(uint8_t i, fract8 scale)
Scale one byte by a second one, which is treated as the numerator of a fraction whose denominator is ...
Definition scale8.h:34

References LIB8STATIC, scale8(), and x.

+ Here is the call graph for this function: