diff options
| author | Federico Angelilli <code@fedang.net> | 2024-03-14 00:58:05 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-03-14 00:58:05 +0100 |
| commit | 398fdbaa5c02bbd138c59004053d2e8ad0082ead (patch) | |
| tree | d846ed2d4e811ffeddde9dc77a5549fe38edbd34 /src/animate.h | |
| parent | cbe94d7c42422856275ad41332cbc980054d6bee (diff) | |
Add animation scaffolding
Diffstat (limited to 'src/animate.h')
| -rw-r--r-- | src/animate.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 |
