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,
|
||||
STELLAR = 6,
|
||||
RGBW_SINUS = 7,
|
||||
RGBW_PSYCHEDELIC = 8,
|
||||
|
||||
NUM_DEFAULT_ANIMATIONS
|
||||
};
|
||||
|
@ -38,7 +39,8 @@ class AnimationController
|
|||
"Matrix Code",
|
||||
"Fireworks",
|
||||
"Twinkling Sky",
|
||||
"RGBW Sinus"
|
||||
"RGBW Sinus",
|
||||
"RGBW Psychedelic"
|
||||
};
|
||||
|
||||
AnimationController(Fader *fader);
|
||||
|
|
|
@ -78,6 +78,10 @@ void AnimationController::changeAnimation(AnimationController::DefaultAnimation
|
|||
anim.reset(new RgbwSinusAnimation(m_fader));
|
||||
break;
|
||||
|
||||
case RGBW_PSYCHEDELIC:
|
||||
anim.reset(new RgbwPsychedelicAnimation(m_fader));
|
||||
break;
|
||||
|
||||
default:
|
||||
return; // unknown id, do nothing
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue