44ceea7 ยท 1 month ago 7 commits
 1#ifndef _SWAYLOCK_FADE_H
 2#define _SWAYLOCK_FADE_H
 3
 4#include <stdbool.h>
 5#include <stdint.h>
 6
 7struct swaylock_fade {
 8	float current_time;
 9	float target_time;
10	uint32_t old_time;
11	double alpha;
12};
13
14void fade_update(struct swaylock_fade *fade, uint32_t time);
15bool fade_is_complete(struct swaylock_fade *fade);
16
17#endif