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

◆ ChangePalettePeriodically()

void ChangePalettePeriodically ( )

Definition at line 1161 of file funky.cpp.

1161 {
1162 uint8_t secondHand = (millis() / 1000) % 60;
1163 static uint8_t lastSecond = 99;
1164
1165 if (lastSecond != secondHand) {
1166 lastSecond = secondHand;
1167 if (secondHand == 0) {
1169 currentBlending = LINEARBLEND;
1170 }
1171 if (secondHand == 10) {
1173 currentBlending = NOBLEND;
1174 }
1175 if (secondHand == 15) {
1177 currentBlending = LINEARBLEND;
1178 }
1179 if (secondHand == 20) {
1181 currentBlending = LINEARBLEND;
1182 }
1183 if (secondHand == 25) {
1185 currentBlending = LINEARBLEND;
1186 }
1187 if (secondHand == 30) {
1189 currentBlending = NOBLEND;
1190 }
1191 if (secondHand == 35) {
1193 currentBlending = LINEARBLEND;
1194 }
1195 if (secondHand == 40) {
1197 currentBlending = LINEARBLEND;
1198 }
1199 if (secondHand == 45) {
1201 currentBlending = LINEARBLEND;
1202 }
1203 if (secondHand == 50) {
1205 currentBlending = NOBLEND;
1206 }
1207 if (secondHand == 55) {
1209 currentBlending = LINEARBLEND;
1210 }
1211 }
1212}
TBlendType currentBlending
const TProgmemPalette16 myRedWhiteBluePalette_p
CRGBPalette16 currentPalette
void SetupTotallyRandomPalette()
Definition funky.cpp:1214
void SetupPurpleAndGreenPalette()
Definition funky.cpp:1235
void SetupBlackAndWhiteStripedPalette()
Definition funky.cpp:1224
const TProgmemRGBPalette16 RainbowStripeColors_p
HSV Rainbow colors with alternatating stripes of black.
const TProgmemRGBPalette16 CloudColors_p
Cloudy color palette.
const TProgmemRGBPalette16 PartyColors_p
HSV color ramp: blue, purple, pink, red, orange, yellow (and back).
const TProgmemRGBPalette16 RainbowColors_p
HSV Rainbow.

References CloudColors_p, currentBlending, currentPalette, myRedWhiteBluePalette_p, PartyColors_p, RainbowColors_p, RainbowStripeColors_p, SetupBlackAndWhiteStripedPalette(), SetupPurpleAndGreenPalette(), and SetupTotallyRandomPalette().

Referenced by NoiseExample7(), and NoiseExample8().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: