About
There is a good reason for the word Vector in Vector Graphics. Paper.js treats Vector Mathematics as a first class citizen by making working with vectors and geometries as simple as possible through its core types such as Point, Size and Rectangle.
Examples
Examples ยท Boolean Operations ยท Candy Crash ยท Satie Liked To Draw ยท Chain ยท Tadpoles ยท Nyan Rainbow ยท Rounded Rectangles ยท Radial Rainbows ยท Meta Balls
Showcase
This Google DevArt winner combines Paper.js with body tracking in wonderful ways.
Tutorials
An introduction into how Paper.js works together with PaperScript and JavaScript.
๐ŸŒ
GitHub
github.com โ€บ paperjs โ€บ paper.js
paperjs/paper.js: The Swiss Army Knife of Vector Graphics ...
The Swiss Army Knife of Vector Graphics Scripting โ€“ Scriptographer ported to JavaScript and the browser, using HTML5 Canvas. Created by @lehni & @puckey - paperjs/paper.js
Starred by 15K users
Forked by 1.3K users
Languages ย  JavaScript 98.3% | TypeScript 1.4%
Discussions

Paper JS is a new way to write HTML entirely in your JavaScript.
http://paperjs.org/ bad naming, there already is an established paperjs with 14k+ github stars. did you even search? More on reddit.com
๐ŸŒ r/html5
4
1
June 12, 2024
raphael.js vs paper.js
What are the main differences between raphael.js and paper.js? Are there any other libs out there I should look at? Any like these that focus more on CSS3 then SVG? Thanks! More on stackoverflow.com
๐ŸŒ stackoverflow.com
Paper JS is a new way to write HTML entirely in your JavaScript.
JavaScript devs trying not to write anything other than JavaScript episode 6427... More on reddit.com
๐ŸŒ r/Frontend
30
0
June 13, 2024
I build my WebSite with Paper.js and D3.js, what you think about it?

Hey, looks really awesome! I've been aching to break into d3, how hard do you think it is to get started with it? The only criticism I'd have with the site itself would be the timeline background. I found it a bit straining on my eyes (but maybe that's just me).

In terms of English corrections:

  • "Softwares" in the navigation should be "Software"

  • "Spend" should be "Spent" on your timeline (2014). This paragraph could also read a bit better, maybe: "I spent almost a week building this website. I made it with love and JS. Thanks to the latest HTML standards I got the possibility to simply draw my decorations with lines of code, and without using any raster images."

  • On the second page of your timeline (2013 - 2014) it could read something like this: "I like to share even if it is not always easy. I don't just want to keep my swish-kniff tool for myself, so I build up some repositories with different projects:"

There are some more English mistakes in the other timeline items but I don't have enough time to go through. All in all it's legible and there are only some very minor mistakes.

Good job over all!

More on reddit.com
๐ŸŒ r/webdev
9
3
March 4, 2014
๐ŸŒ
Paper.js
paperjs.org โ€บ examples
Paper.js โ€” Examples
Examples ยท Boolean Operations ยท Candy Crash ยท Satie Liked To Draw ยท Chain ยท Tadpoles ยท Nyan Rainbow ยท Rounded Rectangles ยท Radial Rainbows ยท Meta Balls
๐ŸŒ
GitHub
github.com โ€บ paperjs
Paper.js ยท GitHub
paperjs/paperjs.github.ioโ€™s past year of commit activity ... The Swiss Army Knife of Vector Graphics Scripting, packaged for Node.js with rendering to Node Canvas
๐ŸŒ
Reddit
reddit.com โ€บ r/html5 โ€บ paper js is a new way to write html entirely in your javascript.
r/html5 - Paper JS is a new way to write HTML entirely in ...
June 12, 2024 - Paper JS is a new way to write HTML entirely in your JavaScript.

Introducing Paper JS a new way to write and structure html entirely inside your JavaScript. Also leaving a small footprint on your website as the library comes in at only 800 bytes in size.

check out the GitHub to get started, also a star would be awesome, if you find an error or questions DM me.

๐ŸŒ
Google Groups
groups.google.com โ€บ g โ€บ paperjs โ€บ c โ€บ xTHDkC_Nejw
Limitations of Paper.js with large numbers of items
To clarify: The motivation for creating Paper.js was to provide a well abstracted vector graphics toolset that facilitates the creation and manipulation of vector shapes very much in a way that for example a drawing application like InkScape or Illustrator would require.
Find elsewhere
๐ŸŒ
Medium
medium.com โ€บ @astreal โ€บ exploring-paper-js-in-react-7e2528021df5
Exploring paper.js in React. Take a journey with me and learn how toโ€ฆ | by Astreal | Medium
August 14, 2021 - Earlier today I was working on an untitled project using Electron and React and ran into a bit of an issue. This project uses paper.js to create a canvas that should contain a bunch of nodes (primitive rectangles with input & output fields) generated by the user.
๐ŸŒ
Paper.js
paperjs.org โ€บ about
Paper.js โ€” About
Paper.js is an open source vector graphics scripting framework that runs on top of the HTML5 Canvas.
๐ŸŒ
Creativeapplications
creativeapplications.net โ€บ tools โ€บ paperjs
PaperJs โ€“ CreativeApplications.Net
Paper.js is an open source vector graphics scripting framework that runs on top of the HTML5 Canvas. http://paperjs.org
Top answer
1 of 4
52

Raphael uses SVG. Paper use Canvas.

That's the major difference.

In terms of what you can do with them, Canvas and SVG each have their own place, and are good for different things (although they are both capable of doing each other's thing as well if you ask them to). From a purely functional point of view, you need to consider what you want to do with the library before you decide which one you go with.

Browser compatibility is going to be a big issue, whichever one you use. This will possibly be a bigger issue than functionality, in fact.

Raphael has an advantage on the desktop because it detects older versions of IE (as far back as IE6) and falls back to using VML instead of SVG. This means it has excellent compatibility on virtualyl all desktop browsers. Canvas simply isn't supported on older IEs, and the Paper.js people don't really seem too worried about it.

But on mobiles, Paper.js may be better, because Canvas has much better support on mobiles than SVG. SVG isn't supported on most Android devices at all. This is changing: Android 3.0 introduced SVG support, but most Android devices being sold even now come with v2.x, so it'll be a while before you can rely on SVG working on a mobile.

For more info about browser support, see the CanIUse site:

  • CanIUse SVG
  • CanIUse Canvas

Hope that helps.

2 of 4
8

The most obvious difference is that Raphael targets SVG, and Paper targets the Canvas element. It also appears that Paper has far greater advanced features, whereas Raphael is just core SVG elements, which can then be expanded upon with plugins. Arguably, it depends more on your need, and which environments you wish to target. Canvas works well on some mobile browsers, SVG barely works on mobile environments at all.

As another side note: SVG, as I'm aware of it, is not hardware-accelerated in IE (9) or Firefox, and, again if my memory isn't failing me, Canvas is, at least in IE (9). As for IE 8 and below, you need a browser plugin, which most have, but it is a dependency to expect.

๐ŸŒ
Reddit
reddit.com โ€บ r/frontend โ€บ paper js is a new way to write html entirely in your javascript.
Paper JS is a new way to write HTML entirely in your ...
June 13, 2024 - Paper JS is a new way to write HTML entirely in your JavaScript.

Introducing Paper JS a new way to write and structure html entirely inside your JavaScript. Also leaving a small footprint on your website as the library comes in at only 800 bytes in size.

check out the GitHub to get started, also a star would be awesome, if you find an error or questions DM me.

EDIT:

I really appreciate everyone's feedback to project, as it's definitely not perfect but was mostly created as a prototype or demo, of a custom js to html system. My next plan is to allow support with nodejs on the backend so you can build webpages on the serverside.

๐ŸŒ
Google Groups
groups.google.com โ€บ g โ€บ paperjs
Paper.js - Google Groups
Hi, there, I basically use the following approach. https://paperjs.org/tutorials/interaction/creating
๐ŸŒ
SourceForge
sourceforge.net โ€บ projects โ€บ paper-js.mirror
Paper.js download | SourceForge.net
Download Paper.js for free. The swiss army knife of vector graphics scripting . Paper.js is an open source vector graphics scripting framework that runs on top of the HTML5 Canvas.
๐ŸŒ
GitHub
github.com โ€บ paperjs โ€บ paper.js โ€บ releases
Releases ยท paperjs/paper.js
The Swiss Army Knife of Vector Graphics Scripting โ€“ Scriptographer ported to JavaScript and the browser, using HTML5 Canvas. Created by @lehni & @puckey - Releases ยท paperjs/paper.js
Author ย  paperjs
๐ŸŒ
Paper.js
paperjs.org โ€บ tutorials โ€บ getting-started โ€บ working-with-paper-js
Paper.js โ€” Working with Paper.js
Paper.js offers different approaches for its integration in the browser. The simplest way is to use PaperScript, our extension of JavaScript that facilitates a few things along the way.