FastLED 3.9.15
|
LIB8STATIC uint8_t cos8 | ( | uint8_t | theta | ) |
Fast 8-bit approximation of cos(x).
This approximation never varies more than 2% from the floating point value you'd get by doing
theta | input angle from 0-255 |
Definition at line 266 of file trig8.h.
References LIB8STATIC, and sin8.
Referenced by getPaletteIndex().