FastLED 3.10.8
Loading...
Searching...
No Matches

◆ ease8InOutQuad()

LIB8STATIC fl::u8 ease8InOutQuad ( fl::u8 i)

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

Takes around 13 cycles on AVR.

Definition at line 489 of file lib8tion.h.

490 {
491 fl::u8 j = i;
492 if( j & 0x80 ) {
493 j = 255 - j;
494 }
495 fl::u8 jj = scale8( j, j);
496 fl::u8 jj2 = jj << 1;
497 if( i & 0x80 ) {
498 jj2 = 255 - jj2;
499 }
500 return jj2;
501}
unsigned char u8
Definition stdint.h:131

References FL_NO_EXCEPT, and LIB8STATIC.

Referenced by quadwave8().

+ Here is the caller graph for this function: