Files
Basalt/docs/objects/Animation.md
Robert Jelic 4d614372a1 Updated docs
There is still stuff to do
2022-08-28 18:18:26 +02:00

1.2 KiB

With animations, you can create a beautiful experience for users while interacting with your program.

add Adds a new custom function to call at the current time
wait Adds a amount to the animation time
play Plays the animation
cancel Cancels the animation
setObject Sets an object on which predefined animations should work on
move Predefined animation: moves the object to a new position
offset Predefined animation: Changes the offset of that object
size Predefined animation: Changes the size on a object
changeText Predefined animation: Changes the text (object needs a setText method)
changeTextColor Predefined animation: changes the foreground/textcolor on a object
changeBackground Predefined animation: changes the background on a object

Events

onDone Gets called as soon as the animation has finished