FastLED 3.9.15
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 488 of file lib8tion.h.

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

References LIB8STATIC.

Referenced by quadwave8().

+ Here is the caller graph for this function: