aboutsummaryrefslogtreecommitdiff
path: root/software/animation.h
blob: 3e0d3a733489cc51202b61b9a7e091dcf719538d (plain)
1
2
3
4
5
6
7
8
9
#pragma once

#include "consts.h"

/** @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);