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

◆ brighten8_lin()

LIB8STATIC uint8_t brighten8_lin ( uint8_t x)

Brighten a value (inverse of dim8_lin())

Definition at line 733 of file scale8.h.

733 {
734 uint8_t ix = 255 - x;
735 if (ix & 0x80) {
736 ix = scale8(ix, ix);
737 } else {
738 ix += 1;
739 ix /= 2;
740 }
741 return 255 - ix;
742}
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: