如何将动画应用于我在画布中制作的图形的不同部分 [英] How Do I Apply Animations To The Different Parts Of A Figure That I Have Made In Canvas
本文介绍了如何将动画应用于我在画布中制作的图形的不同部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
你最好的选择是不要直接使用Canvas但是使用包含这样的东西的库,比如动能 [ ^ 一>]。
hey guys lets say that i have two rectangles over one another. and tire are drawn and now i want to apply move this from left to right across screen and also show the wheels moving and also suppose if i have lines or an arc attached to the figure and i want to show them move up and down so can anyone please tell me how do i do it.
解决方案
Your best bet is to not use the Canvas directly but use a library that wraps stuff like this, like Kinetic[^].
这篇关于如何将动画应用于我在画布中制作的图形的不同部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文