From 398fdbaa5c02bbd138c59004053d2e8ad0082ead Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Thu, 14 Mar 2024 00:58:05 +0100 Subject: Add animation scaffolding --- src/animate.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/animate.h (limited to 'src/animate.h') diff --git a/src/animate.h b/src/animate.h new file mode 100644 index 0000000..3f8d4a6 --- /dev/null +++ b/src/animate.h @@ -0,0 +1,21 @@ +#ifndef COMET_ANIMATE_H +#define COMET_ANIMATE_H + +typedef struct { + enum { + ANIM_SHINE, + } type; + GSourceFunc handler; +} Animation; + +double quadratic_bezier(double x, double a, double b, double c); + +double cubic_bezier(double x, double a, double b, double c, double d); + +Animation *animation_create(); + +void animation_destroy(Animation *anim); + +#endif + +// vim: ts=4 sw=4 et -- cgit v1.2.3