FastLED
3.10.8
Loading...
Searching...
No Matches
◆
ease16InOutQuad()
LIB8STATIC
fl::u16 ease16InOutQuad
(
fl::u16
i
)
Definition at line
532
of file
lib8tion.h
.
533
{
534
// This is the legacy version, there is a slightly more accurate version in fl/ease.cpp
535
// with fl::easeInOutQuad16. However the difference is minimal.
536
//
537
// 16-bit quadratic ease-in / ease-out function
538
fl::u16 j = i;
539
if
(j & 0x8000) {
540
j = 65535 - j;
541
}
542
fl::u16 jj = scale16(j, j);
543
fl::u16 jj2 = jj << 1;
544
if
(i & 0x8000) {
545
jj2 = 65535 - jj2;
546
}
547
return
jj2;
548
}
References
FL_NO_EXCEPT
, and
LIB8STATIC
.
Easing Functions
Generated on Sun Oct 18 2026 00:57:02 for FastLED by
1.13.2