B4X FEED Color value/position based on time calculation?

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Color value\/position based on time calculation? است. این موضوع تا کنون 34 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Color value\/position based on time calculation?
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
34
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
This question isn't strictly related to B4X, just something I'm working on that's not in B4X and I need to manually animate a couple of items and I can't find my old example snippets for it... :mad: I need to move an object and change it's color over a few seconds and I'm having an aneurism coming up with the formulas for x/y and color-percentages based on elapsed time (simple linear transitions, nothing fancy).

I know I've seen somewhere here in posts examples of both "ColorFromTime" and "PositionFromTime" functions used in the days before ".SetWhateverAnimated" was available and for the life of me I can't find either one after searching the forum for half-an-hour.

So, rather than continuing to bang my head against this particular wall, I figured I'd ask If anyone has an examples of those two routines in B4A, and maybe I can put this particular problem to bed before the weekend ;)

TIA!

 

عقب
بالا