Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Rectangle rectangle = new Rectangle(50, 50);
- rectangle.setFill(Color.RED);
- Circle circle = new Circle(40);
- circle.setFill(Color.BLUE);
- PathTransition transition = new PathTransition();
- transition.setNode(rectangle);
- transition.setDuration(Duration.seconds(3));
- transition.setPath(circle);
- transition.play();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement