Comments (1)
Hello, there is no plan on supporting that. From what I gather (according to my own experience with await
in other languages)
await tweeny::from(130).to(130).during(300);
is supposed to wait for the whole interpolation to finish before going on with the next statement? If that's the case, how is that desirable? I mean, it clearly sounds cool but I'm not sure how that's useful (I may be that ignorant), usually tweens are controlled elsewhere because animations tend to move forward regardless of other things happening in the code.
Moreover, at least judging by your code, who is going to step the tween? the coroutine? Tweeny itself has no notion of "frame", it has no self register for interpolations to interpolate, it does not calculate any kind of delta-time by itself, that is left for the application developer to do. If we are going to support this idiom, we'll need to keep track of time.
Maybe we can have a coroutine wrapper in an "extension" header that knows how to handle these things? Specially because that's not a core goal of tweeny, but would be a nice feature to have, if the use case is actually useful and pertinent.
I have a lot of catch-ups to do with the C++ standard so I don't see myself researching or working on this myself, so as for me, I have no plans on adding that.
from tweeny.
Related Issues (20)
- Missing stepped easing mode HOT 9
- Compile error HOT 1
- different durations problem HOT 3
- Crash with illegal instruction HOT 7
- Current Direction is ignored on 2 of 3 step functions HOT 1
- Error HOT 4
- Conflicting type when using jump function HOT 4
- Help with duration HOT 11
- [FUTURE IDEA] Timeline HOT 1
- got benchmarks? HOT 1
- Crash when peek() argument si greather than 1.0f HOT 1
- Using string as easing function name in 'via' does not work HOT 1
- warning C4127: conditional expression is constant HOT 2
- Method to wait at a point
- Warning "conversion from βintβ to βfloatβ may change value" when using integer values HOT 4
- multiple enumeration support HOT 2
- Question: Set time duration HOT 3
- fail to build HOT 8
- how to get all Tweens in running? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tweeny.