首页 > 解决方案 > 向图像添加多个路径过渡

问题描述

我想为图像添加不同的路径过渡。这就是我到目前为止所做的。我能做些什么?

        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();

标签: javaanimationjavafxpathtransition

解决方案


推荐阅读