October 12, 2012
Paper-js is an open source vector graphics scripting framework that runs on top of the HTML5 Canvas. Paper.js offers a clean Scene Graph / Document Object Model and a lot of powerful functionality to create and work with vector graphics and bezier curves, all neatly wrapped up in a well designed, consistent and clean programming interface.
Paper.js provides a Document Object Model (also called a Scene Graph) that is very easy to work with.Groups and layers can contain other items and even other groups.
It has got the following features :-
Paper-js allows you to interact with the keyboard in two ways: You can either intercept key events and respond to these, or you can check the state of a given key at any moment, to see if it is pressed or not.
Symbols allow you to place multiple instances of an item in your project. This can save memory, since all instances of a symbol simply refer to the original item and it can speed up moving around complex objects, since internal properties such as segment lists and gradient positions don’t need to be updated with every transformation.
Place images in your project, work with the colors of their pixels or look at average colors of the pixels that fall within paths placed on top of them.
© 2013 jquer.in
Curated By Jay Kanakiya