Advertisement
Guest User

Untitled

a guest
May 30th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. Rectangle rectangle = new Rectangle(50, 50);
  2. rectangle.setFill(Color.RED);
  3. Circle circle = new Circle(40);
  4. circle.setFill(Color.BLUE);
  5. PathTransition transition = new PathTransition();
  6. transition.setNode(rectangle);
  7. transition.setDuration(Duration.seconds(3));
  8. transition.setPath(circle);
  9. transition.play();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement