【发布时间】:2013-11-26 05:11:39
【问题描述】:
我有三个问题:
- 我创建了一个animation 来绘制一条直线。它有效,但我确信这不是最好的方法。有人可以建议对我的代码进行一些改进吗?
伪代码:
onFrame = function() {
-Calculate % of the line that have been drawn
-Find Point between two Points
-Draw line until this new point
}
我的技术适用于直线,但如果我想根据持续时间绘制 Arc,我该怎么做?
如果我想给绘图添加缓动效果怎么办?
【问题讨论】: