Commit Graph

8 Commits

Author SHA1 Message Date
Yuxuan Shui 6e77ea099c
transition: interpolate with time instead of steps
It's much more flexible this way.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-04-18 18:27:50 +01:00
Yuxuan Shui f54e89b224
transition: interpolators don't need to know about animatable state
Interpolators should only need to map from [0, 1] to [0, 1].

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-04-18 18:27:49 +01:00
Yuxuan Shui 735d3c1992
transition: make animatable_set_target make more sense
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-04-18 18:27:46 +01:00
Yuxuan Shui 3bb3298161
transition: better names
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-04-18 17:35:24 +01:00
Yuxuan Shui 9a8dd0546b
transition: allow interpolator to hold some internal parameters
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-04-18 17:35:22 +01:00
Yuxuan Shui 6303ba2b8e
transition: remove step function based transition
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-04-18 17:35:19 +01:00
Yuxuan Shui c1d2a8fa40
transition: add transition event callback
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-03-26 11:34:52 +00:00
Yuxuan Shui 5a5716a7b1
transition: add a generic animated transition mechanism
This should replace the current fading animation implementation.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-03-26 11:34:44 +00:00