Skip to content

Commit cdc1a61

Browse files
committed
Fixed the slow 'fade-in' caused by palette blending (from nothing to rainbow colors)
1 parent f036a18 commit cdc1a61

File tree

3 files changed

+9034
-9026
lines changed

3 files changed

+9034
-9026
lines changed

Aurora.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ void setup()
160160
}
161161

162162
// setup the effects generator
163-
effects.CyclePalette();
164-
effects.NoiseVariablesSetup();
163+
effects.Setup();
165164

166165
mainMenuItemCount = sizeof(mainMenuItems) / sizeof(MenuItem*);
167166

Effects.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ class Effects {
6262

6363
static const int HeatColorsPaletteIndex = 7;
6464

65+
void Setup() {
66+
currentPalette = RainbowColors_p;
67+
loadPalette(0);
68+
NoiseVariablesSetup();
69+
}
70+
6571
void CyclePalette(int offset = 1) {
6672
loadPalette(paletteIndex + offset);
6773
}

0 commit comments

Comments
 (0)