javafx animation looping

后端 未结 3 1902
误落风尘
误落风尘 2020-12-21 22:46

in c++ or c programming language, we know to change the cordinate we use gotoxy(x,y) and we can use looping and sleep to change the cordinate and making animation. like this

3条回答
  •  别那么骄傲
    2020-12-21 23:24

    Have look at using a Timeline Animation. It is a key component of animation in JavaFX and
    is used to establish when, and in what sequence, key parts of an animation occur.

    Here is an example

提交回复
热议问题