p5.js vs GraphicsJS
When comparing p5.js vs GraphicsJS, the Slant community recommends p5.js for most people. In the question“What are the best JavaScript drawing libraries?” p5.js is ranked 2nd while GraphicsJS is ranked 10th. The most important reason people chose p5.js is:
Reference documentation and lots of examples are available directly on the [website](http://p5js.org/).
Ranked in these QuestionsQuestion Ranking
Pros
Pro Accessible documentation
Reference documentation and lots of examples are available directly on the website.
Pro Great community
p5 users benefit from the Processing community's 15+ years of growth and discovery. Processing code can easily be converted to p5.
Pro General programming concepts
As a continuation of the Processing project, this frameworks helps in understanding the general programming concepts that goes beyond drawing (connecting electronics, using sounds or the webcam etc),
Pro Easiest to learn to obtain high grade results
In a few days any body can understand extremely complex figures in a few minutes.
Pro A lot of YouTube tutorials
Pro Powerful line drawing
Not only Bezier curves but also any lines, shapes, arcs, etc. out-of-the-box.
Pro Convenient API
Clear and concise API with chaining support.
Pro Virtual DOM
Rapid drawing. Only what is necessary is drawn.
Pro Has its own transformation engine
No need to use embarrassing in-browser transformations.
Pro Legacy browser support
IE6+.
Pro Smart layering system
With z-index.
Pro Rich text features
Multiline text support, text measurement, wrap, indent, spacing, align, etc.
Pro Full accessibility (Section 508)
Pro Events support
All browser events are dispatched in the same way in virtual DOM structure also.
Cons
Con No built-in rendering
If looking for something to build UIs with or similar, one might be disappointed by the lack of any pre-defined UI element objects and such in p5.js. One has to write all the rendering code for any objects one includes, integrating it appropriately with the loop.