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

◆ MoveOscillators()

void MoveOscillators ( )

Definition at line 248 of file funky.cpp.

248 {
249 osci[0] = osci[0] + 5;
250 osci[1] = osci[1] + 2;
251 osci[2] = osci[2] + 3;
252 osci[3] = osci[3] + 4;
253 for (int i = 0; i < 4; i++) {
254 p[i] =
255 sin8(osci[i]) /
256 17; // why 17? to keep the result in the range of 0-15 (matrix size)
257 }
258}
byte osci[4]
Definition funky.cpp:70
#define sin8
Platform-independent alias of the fast sin implementation.
Definition trig8.h:221
static FASTLED_NAMESPACE_BEGIN uint8_t const p[]
Definition noise.cpp:30

References osci, p, and sin8.

Referenced by AudioSpiral(), CaleidoTest2(), Dots1(), Dots2(), Mandala8(), MSGEQtest7(), MSGEQtest8(), NoiseExample1(), NoiseExample2(), NoiseExample3(), NoiseExample4(), NoiseExample5(), SlowMandala2(), and SlowMandala3().

+ Here is the caller graph for this function: