Plugin jQuery: Two.js : Two-dimensional Drawing API

Two.js : Two-dimensional Drawing API
http://www.jqueryrain.com/?http://jonobr1.github.io/two.js/#examples
https://github.com/jonobr1/two.js
16/07/2013

Nội dung

Two.js : Two-dimensional Drawing API

A two-dimensional drawing api meant for modern browsers. It is renderer agnostic enabling the same api to render in multiple contexts: webgl, canvas2d, and svg.Two.js is deeply inspired by flat motion graphics. As a result, two.js aims to make the creation and animation of flat shapes easier and more concise. At the time of this writing two.js unfortunately does not support text or images.

Two.js has a built in animation loop. It is simple in nature and can be automated or paired with another animation library.At its core two.js relies on a scenegraph. This means that when you draw or create an object (a Two.Polygon or Two.Group), two actually stores and remembers that. After you make the object you can apply any number of operations to it — e.g: rotation, translation, scale, etc..


Nguồn: www.jqueryrain.com/2013/07/two-js-two-dimensional-drawing-api/


Chưa có phản hồi
Bạn vui lòng Đăng nhập để bình luận