This commit is contained in:
Kovid Goyal
2024-07-19 11:47:24 +05:30
parent 43769bc3e0
commit e15e882d10
3 changed files with 6 additions and 6 deletions

View File

@@ -15,6 +15,8 @@ typedef enum { EASING_STEP_START, EASING_STEP_END, EASING_STEP_NONE, EASING_STEP
#ifndef ANIMATION_INTERNAL_API
typedef struct {int x;} *Animation;
#endif
#define EASE_IN_OUT 0.42, 0, 0.58, 1
#define ANIMATION_SAMPLE_WAIT (50 * MONOTONIC_T_1e6)
Animation* alloc_animation(void);
double apply_easing_curve(const Animation *a, double t /* must be between 0 and 1*/, monotonic_t duration);
bool animation_is_valid(const Animation *a);