Animating Canvas Stroke
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...
精彩评论