FastLED 3.9.15
|
LIB8STATIC uint8_t quadwave8 | ( | uint8_t | 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 765 of file lib8tion.h.
References ease8InOutQuad(), LIB8STATIC, and triwave8().