aboutsummaryrefslogtreecommitdiffstats
path: root/visualizer.h
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-04-24 16:19:31 +0300
committerFred Sundvik <fsundvik@gmail.com>2016-04-24 16:19:31 +0300
commit891edbd533acdffec66416c59f4b6066e5e18aaa (patch)
treee88c14219a4b83148f78d047ced1d6d631644169 /visualizer.h
parent444132edd056cd52a60e3551d1f6c1a07909c040 (diff)
downloadfirmware-891edbd533acdffec66416c59f4b6066e5e18aaa.tar.gz
firmware-891edbd533acdffec66416c59f4b6066e5e18aaa.tar.bz2
firmware-891edbd533acdffec66416c59f4b6066e5e18aaa.zip
Add function for running the next keyframe
Diffstat (limited to 'visualizer.h')
-rw-r--r--visualizer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/visualizer.h b/visualizer.h
index 82d7a71d3..5375e0130 100644
--- a/visualizer.h
+++ b/visualizer.h
@@ -106,6 +106,9 @@ extern GDisplay* LED_DISPLAY;
void start_keyframe_animation(keyframe_animation_t* animation);
void stop_keyframe_animation(keyframe_animation_t* animation);
+// This runs the next keyframe, but does not update the animation state
+// Useful for crossfades for example
+void run_next_keyframe(keyframe_animation_t* animation, visualizer_state_t* state);
// Some predefined keyframe functions that can be used by the user code
// Does nothing, useful for adding delays