互联网作为一个新兴的媒介,最突出的优势就是图片和动画展示,利用动画引擎可以很方便地实现网页动画显示和制作网页游戏。首先简要介绍了HTML5和动画引擎的概念,及相较于FLASH等现有技术,使用HTML5制作动画的优势所在。然后详细介绍了基于HTML5和JavaScript开发的轻量型动画引擎,从结构和算法方面介绍了滤镜、物理效果、路径设置等具体方法,提出了表单式编程概念。最后简要介绍了利用该弓l擎制作的动画实例,分别展示了动画滤镜效果和路径动画效果。
As a new medium, the most important advantage of the Intemet is the display of pictures and animations. It is very easy to make an animation or webgame with an animation engine. Firstly,introduce the basic concepts of HTML5 and animation engine, and advantages of making animations with HTML5 ,compared with the existing technologies like FLASH. Then introduce the lightweight animation en- gine based on HTML5 and JavaScript in details, describe the structure and algorithms of filter, physical effects, path setting and so on, and propose the concept of form programming. At the end,there are some examples made with this engine, and it shows the effects of anima- tion filter and path animation.