Shape tween in javascript

后端 未结 5 838
走了就别回头了
走了就别回头了 2020-12-17 20:49

Is there a way to do a shape tween in javascript? Using canvas maybe...

5条回答
  •  一整个雨季
    2020-12-17 20:54

    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 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:

    • Tween.lib - Motion Tweening for Processing.js
    • Motion Tweening for Processing.js

提交回复
热议问题