What’s the easiest way to light a sine wave of a specific RGB or HSV color? I like how this looks but instead of controlling red, blue and green individually I want to have a specific color moving.
void plas3() {
wave1 +=2;
wave2 +=1;
wave3 -=3;
for (int k=0; k<NUM_LEDS; k++) {
leds[k].r = qsub(sin8(20*k + wave1), 80); // Another fixed frequency, variable phase sine wave with lowered level
leds[k].g = qsub(cos8(25*k + wave2), 80); // A fixed frequency, variable phase sine wave with lowered level
leds[k].b = qsub(sin8(22*k + wave3), 80); // A fixed frequency, variable phase sine wave with lowered level
}
LEDS.show();
delay(thisdelay);
anyone got a good site/page that lays out sine waves as they apply to this sort of thing in layman’s terms. I’ve had a hard time wrapping my head around it and what it actually does and I get the feeling older projects of mine could have benefitted from using the math.