Advertisement
Guest User

Untitled

a guest
May 30th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. Rectangle rectangle = new Rectangle(100, 100);
  2. TranslateTransition transition = new TranslateTransition();
  3. transition.setNode(rectangle);
  4. //transition.setFromX(0);
  5. //transition.setFromY(0);
  6. transition.setToX(100);
  7. transition.setToY(100);
  8. transition.play();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement