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

◆ ease16InOutQuad()

LIB8STATIC uint16_t ease16InOutQuad ( uint16_t i)

16-bit quadratic ease-in / ease-out function.

C implementation at this point.

Definition at line 625 of file lib8tion.h.

626{
627 uint16_t j = i;
628 if( j & 0x8000 ) {
629 j = 65535 - j;
630 }
631 uint16_t jj = scale16( j, j);
632 uint16_t jj2 = jj << 1;
633 if( i & 0x8000 ) {
634 jj2 = 65535 - jj2;
635 }
636 return jj2;
637}
LIB8STATIC uint16_t scale16(uint16_t i, fract16 scale)
Scale a 16-bit unsigned value by an 16-bit value, which is treated as the numerator of a fraction who...
Definition scale8.h:540

References LIB8STATIC, and scale16().

+ Here is the call graph for this function: