Brighten a value (inverse of dim8_lin())
Definition at line 739 of file scale8.h.
739 {
740 uint8_t ix = 255 -
x;
741 if (ix & 0x80) {
743 } else {
744 ix += 1;
745 ix /= 2;
746 }
747 return 255 - ix;
748}
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 ...
References LIB8STATIC, scale8(), and x.