aboutsummaryrefslogtreecommitdiff
path: root/software/animation.h
diff options
context:
space:
mode:
Diffstat (limited to 'software/animation.h')
-rw-r--r--software/animation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/software/animation.h b/software/animation.h
index feab14d..3e0d3a7 100644
--- a/software/animation.h
+++ b/software/animation.h
@@ -4,3 +4,6 @@
/** @brief round time to nearest frame */
unsigned long clamp_time(unsigned long unclamped_time);
+
+/** @brief 'zigzag' value between 0 and `size - 1`, like modulo (`%`) operator */
+unsigned int zigzag(unsigned int size, int index);