向图像添加多个路径过渡

时间:2019-01-26 21:57:25

标签: java animation javafx path transition

我想为图像添加不同的路径过渡。这是我到目前为止所做的。我该怎么办?

        QuadCurve ll= new QuadCurve(250,180,475,0,700,180);

        Line c912 = new Line(700,180,250,180);
        PathTransition ty= new PathTransition();
        ty.setNode(iv123);
        ty.setDuration(Duration.seconds(10));
        ty.setPath(ll);
        ty.setOnFinished(e -> {
            ty.setNode(c912);
            ty.play();

        });
        ty.play();

0 个答案:

没有答案
相关问题