K
K
krka922019-07-11 16:29:54
Delphi
krka92, 2019-07-11 16:29:54

What are the ways to implement animation?

Good day to all.
What kind of animation do you know? Do you know what's going on under the hood of animation, for example, in Chrome's V8 or in QT? I need to implement transition animation for my components (changing color, transparency, position, size, etc.). The use of timers comes to mind, counting ticks (GetTickCount) and calculating the current "frame", well, drawing depending on the value of the "frame".
The moment is that there can be quite a lot of components on the form, and for each one to store an object with a timer, the values ​​of the current frame, the total animation time, and maybe also animation curves. Somehow I think it's too big...
Please share your thoughts on this matter. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stockholm Syndrome, 2019-07-11
@StockholmSyndrome

it seems that the FireMonkey component library can do animation

A
Alexander Ananiev, 2019-07-12
@SaNNy32

Make one global timer and draw each object on it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question