Monday, July 26, 2010

Animations test

Tried out some animation concepts. Nothing fancy but hey must start somewhere.

Used the JavaFX Composer in NetBeans. Have a text that says Berra (my nick name) and a button. There are then two states. In the start state things look like this.

Pressing the button causes the text to fall down rapidly. The fall stops when the bottom is almost reached.

The first button is replaced with another button that makes the text go up but with less speed than it went down. Once the text is up again the original button comes back and things start over.

Complete source code here.

No comments:

Post a Comment