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

◆ quadwave8()

LIB8STATIC fl::u8 quadwave8 ( fl::u8 in)

Quadratic waveform generator.

Spends just a little more time at the limits than "sine" does.

S-shaped wave generator (like "sine"). Useful for turning a one-byte "counter" value into a one-byte oscillating value that moves smoothly up and down, with an "acceleration" and "deceleration" curve.

This is even faster than "sin8()", and has a slightly different curve shape.

Definition at line 697 of file lib8tion.h.

698{
699 return ease8InOutQuad( triwave8( in));
700}
LIB8STATIC fl::u8 ease8InOutQuad(fl::u8 i)
8-bit quadratic ease-in / ease-out function.
Definition lib8tion.h:488
LIB8STATIC fl::u8 triwave8(fl::u8 in)
Triangle wave generator.
Definition lib8tion.h:678

References ease8InOutQuad(), LIB8STATIC, and triwave8().

+ Here is the call graph for this function: