javascript中的形状补间 [英] Shape tween in javascript
问题描述
有没有办法在 javascript 中做一个形状补间?使用画布也许...
Is there a way to do a shape tween in javascript? Using canvas maybe...
推荐答案
如果您要在 HTML 5 canvas 元素上绘制图形,您可能需要查看 Processing.js 库.有一个补间库,但您可能会发现它很有用 许多其他事情.
If you will be doing graphics on the HTML 5 canvas element, you may want to check the Processing.js library. There is a tweening library, but you will probably find it helpful for many other things.
Processing.js 使用 JavaScript 绘制形状和操作图像HTML 5 画布元素.代码是重量轻,易于学习和是可视化的理想工具数据,创建用户界面和开发基于网络的游戏.
Processing.js uses JavaScript to draw shapes and manipulate images on the HTML 5 Canvas element. The code is light-weight, simple to learn and makes an ideal tool for visualizing data, creating user-interfaces and developing web-based games.
对于补间,您可能需要查看以下内容:
For tweening, you may want to have a look at the following:
这篇关于javascript中的形状补间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!