Paper.js

Paper.js provides a Document Object Model (also called a Scene Graph) that is very easy to work with. Create a project and populate it with layers, groups, paths, rasters, etc. Groups and layers can contain other items and even other groups.

Standing on the shoulders of Scriptographer and making use of HTML5 standards, Paper.js is a comprehensive open-source vector graphics scripting framework, featuring: