最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

javascript - How do I morphanimate a custom shape into a circle? CANVAS JS - Stack Overflow

matteradmin8PV0评论

I have a slice/segment of a circle and want to animate it morphing into a new plete circle with a 'biological' feel to it. By biological I mean a way other than increasing the arc-length of the segment.

How can I get the kind of animation you would get if tweening a square to a circle in Flash, but in Canvas JS?

I have a slice/segment of a circle and want to animate it morphing into a new plete circle with a 'biological' feel to it. By biological I mean a way other than increasing the arc-length of the segment.

How can I get the kind of animation you would get if tweening a square to a circle in Flash, but in Canvas JS?

Share Improve this question asked Jan 20, 2012 at 18:01 FeeneyFeeney 3572 gold badges4 silver badges12 bronze badges 1
  • A related question: stackoverflow./questions/8219266/… – Anderson Green Commented Feb 26, 2013 at 0:01
Add a ment  | 

1 Answer 1

Reset to default 4

Have you heard of the Raphael JavaScript library? Here's an example. I think this demonstrates exactly what you described.

http://raphaeljs./animation.html

Post a comment

comment list (0)

  1. No comments so far