java - 向图像添加多个路径过渡
问题描述
我想为图像添加不同的路径过渡。这就是我到目前为止所做的。我能做些什么?
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();
解决方案
推荐阅读
- c# - 如何将同一列中的值提取到不同的文本框中?
- angular - Angular Elements:如何在非 Angular 应用程序中使用多个 Angular Elements
- android - 如何在 Flutter 中使用 RGB 颜色?
- docker - 没有域名的 Traefik
- angular - 如何从 Angular 4 调用 PHP 函数
- javascript - 例外:为 WebGL 构建时构建 WebGL 播放器失败
- javascript - 如何扩展字符串限制,同时使用 PHP 将其从 MYSQL 数据库转换为下拉列表中的 excel
- xamarin.forms - 应用激活时禁用 Tizen TV 上的“睡眠模式”
- angular - 选择 -- 请选择 -- 作为 angular 4.0 html 表单中下拉列表的默认值
- mysql - 从多个表中计算总数