Closed musjj closed 4 months ago
I think this is mostly solved, by simply doing this:
let duration = Duration::from_secs_f32(5.0);
let ratio = |rhs| duration.mul_f32(rhs);
Then later on doing something like ratio(0.5)..ratio(0.7)
, I think this is good enough IMO.
It would be nice if you can make a span tween that is based on the ratio of the parent span tweener's duration, rather than exact seconds. For example:
So here
0.0..0.5
means to tween from the start to 50% of the span tweener's duration (0th second to the 2.5th second in this case).I think this method would be convenient for quickly and intuitively adjusting the feel of the tween.