canvas教程

Lienzo 1.0: A Scene Graph API In Java For The HTML5 Canvas

字号+ 作者:H5之家 来源:H5之家 2017-12-04 14:07 我要评论( )

Lienzo 1.0: A Scene Graph API In Java For The HTML5 Canvas ,ITPUB论坛-中国最专业的IT技术社区

There is a live demo showing several examples (some animated as well) along with their source code.

The Canvas element of HTML 5 is typically scripted in JavaScript using a very low level set of methods that manage the GUI in immediate mode. The basic Java API offered by GWT is just a thin layer over the JavaScript API, so it is still low level for most Enterprise developers. Emitrom extends this basic API into a full Scene Graph managed inretained mode. This makes possible all the advanced features (such as animations) outlined above.

Lienzo can be extended to support other shapes apart from those already included. Emitrom also exposes the core Context2D Object that offers direct access to the low level methods of the HTML5 canvas. It is therefore possible to develop functionality that is not included in Lienzo by default or even easily port native JavaScript code from existing Canvas applications for those who need this capability.

Finally with the addition of extra libraries offered by Emitrom, Lienzo can also run on iOS, or on the desktop via Adobe Air, further enhancing the cross-platform development idea introduced by Flash4j.

For more information, see the User Manual and Javadocs. Commercial support options are also available.


 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • JavaScript——关于画布元素canvas的使用

    JavaScript——关于画布元素canvas的使用

    2017-12-04 13:05

  • Canvas的使用样例14(图形增加鼠标点击、拖动交互)

    Canvas的使用样例14(图形增加鼠标点击、拖动交互)

    2017-12-03 13:07

  • html5的canvas的学习笔记

    html5的canvas的学习笔记

    2017-12-03 10:42

  • canvas绘制爱心的几种方法总结(推荐)

    canvas绘制爱心的几种方法总结(推荐)

    2017-12-02 15:32

网友点评
"