What is the best way to animate a gadget?

Just starting out? Need help? Post your questions and find answers here.
User avatar
jacdelad
Addict
Addict
Posts: 1431
Joined: Wed Feb 03, 2021 12:46 pm
Location: Planet Riesa
Contact:

What is the best way to animate a gadget?

Post by jacdelad »

Hello,
until now I only worked with standard gadgets and own ones painted on canvases via the 2D drawing library. If I want to create a complete UI, like for a game, what ist the best way to do so? I'm speaking of things moving and blending, organized in the background. Using canvases is surely not good and also this would need timers or threads and could be interupted by other stuff in the foreground.
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB