Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Rectangle rectangle = new Rectangle(100, 100);
- TranslateTransition transition = new TranslateTransition();
- transition.setNode(rectangle);
- //transition.setFromX(0);
- //transition.setFromY(0);
- transition.setToX(100);
- transition.setToY(100);
- transition.play();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement