开发者

Animating Canvas Stroke

开发者 https://www.devze.com 2023-02-20 02:17 出处:网络
I\'m looking for a way to animate the drawing of a stro开发者_JAVA技巧ke with HTML canvas. Is there anything pre-defined that allows you to do this?I do not know any pre-defined solution. Maybe in a

I'm looking for a way to animate the drawing of a stro开发者_JAVA技巧ke with HTML canvas.

Is there anything pre-defined that allows you to do this?


I do not know any pre-defined solution. Maybe in a lib. like raphael

But if you know your stroke (x,y-positions of the pixels). You can set the x and y position in an array and use the array for the animation of painting a stroke...

0

精彩评论

暂无评论...
验证码 换一张
取 消