aboutsummaryrefslogtreecommitdiff
path: root/software/animation.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-11-26 22:19:07 +0100
committerlonkaars <loek@pipeframe.xyz>2021-11-26 22:19:07 +0100
commite6fc8e8af4ff8bd2709eb4485ba1ba9beadd27a5 (patch)
tree9a70bd47b011304b270531a4d0f1e67cc622d8a4 /software/animation.h
parentf9335ba20b0e950e9881749e9bc3006eacefc305 (diff)
first animation done
- added variable length animations - added readme to software subdirectory - implemented first animation
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);