paperjs/paper.js

Created Jul 7, 2022 · View the paperjs/paper.js repository page

The Swiss Army Knife of Vector Graphics Scripting – Scriptographer ported to JavaScript and the browser, using HTML5 Canvas. Created by @lehni & @puckey

Want this for your repo?

Render a free sample of any GitHub repo in seconds.

Visualize your own →

Contributors

92

Lines of Code

17,966

From

Feb 7, 2011

To

Oct 21, 2021

About paperjs/paper.js

Paper.js is a vector graphics scripting library that brings the Scriptographer application to JavaScript and web browsers using HTML5 Canvas. It functions as a comprehensive toolkit for working with vector graphics programmatically, offering a rich set of tools and abstractions for creating and manipulating vector-based artwork in web environments and Node.js applications.

The library supports multiple distribution formats tailored to different use cases. The full version includes PaperScript support and the Acorn.js parser, while the core version provides a lighter-weight option for JavaScript developers. Beyond browser use, Paper.js can run on Node.js through specialized npm packages that enable headless vector graphics work with SVG importing and exporting via jsdom, and optional Canvas rendering through Node-Canvas with Cairo graphics support.

Development is managed through Gulp.js with a Git-Flow branching strategy where the develop branch serves as the main development line and master branch holds releases. The project maintains comprehensive unit testing using QUnit and supports testing across multiple environments including PhantomJS, Node.js, and Chrome browsers. Contributors are welcome to submit pull requests to the develop branch after signing a contributor license agreement.

Share this video