Make the new animation on of the default animations
This commit is contained in:
parent
75c17f28f8
commit
bd6489e347
|
@ -20,6 +20,7 @@ class AnimationController
|
||||||
FIREWORK = 5,
|
FIREWORK = 5,
|
||||||
STELLAR = 6,
|
STELLAR = 6,
|
||||||
RGBW_SINUS = 7,
|
RGBW_SINUS = 7,
|
||||||
|
RGBW_PSYCHEDELIC = 8,
|
||||||
|
|
||||||
NUM_DEFAULT_ANIMATIONS
|
NUM_DEFAULT_ANIMATIONS
|
||||||
};
|
};
|
||||||
|
@ -38,7 +39,8 @@ class AnimationController
|
||||||
"Matrix Code",
|
"Matrix Code",
|
||||||
"Fireworks",
|
"Fireworks",
|
||||||
"Twinkling Sky",
|
"Twinkling Sky",
|
||||||
"RGBW Sinus"
|
"RGBW Sinus",
|
||||||
|
"RGBW Psychedelic"
|
||||||
};
|
};
|
||||||
|
|
||||||
AnimationController(Fader *fader);
|
AnimationController(Fader *fader);
|
||||||
|
|
|
@ -78,6 +78,10 @@ void AnimationController::changeAnimation(AnimationController::DefaultAnimation
|
||||||
anim.reset(new RgbwSinusAnimation(m_fader));
|
anim.reset(new RgbwSinusAnimation(m_fader));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case RGBW_PSYCHEDELIC:
|
||||||
|
anim.reset(new RgbwPsychedelicAnimation(m_fader));
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return; // unknown id, do nothing
|
return; // unknown id, do nothing
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue