Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I've done some js-coding with the html5 canvas element and am somewhat familiar with the api, but I think some kind of library which encapsulates the somewhat tedious canvas api would be a good thing, so it speeds up the development.

Is there a javascript library specifically for the html5 canvas element api that can be used to speed up development with it?

share|improve this question
 
Asking for broad recommendations is considered "not-constructive" by SE, however this question appears to be asking for a recommendation based on a specific criteria, which is OK, so I have voted to reopen this question. –  Rachel Sep 24 '12 at 15:44

closed as not constructive by Jim G., Thomas Owens Sep 23 '12 at 18:29

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 3 down vote accepted

There are many libraries out there. However, i would advice to consider option with Fabric.js, Cake.js, Doodle.js and KineticJS .

Fabric.js is a far more feature rich offering than jCanvaScript. Included in the hefty download file is an SVG-to-canvas parser, unit testing and even limited IE support through Explorer Canvas.

Unlike most of the libraries available in the market, CAKE actually has a number of comprehensive online tutorials. It is important to say that it is written by Matthew Casperson and cover both a basic introduction and more complex animation.

Doodle.js - takes a totally different approach to all the other libraries presented above, in that it doesn't try to fit in with either JavaScript or the Canvas API but instead mimics ActionScript.

However, there is a KineticJS which i did not try yet. According to there web sites:

KineticJS is an HTML5 Canvas JavaScript library that extends the 2d context by enabling high performance path detection and pixel detection for desktop and mobile applications.

You can draw things on the stage and then add event listeners to them, move them, scale them, and rotate them independently from other shapes to support high performance animations and transitions. Served hot with a side of awesomeness.

In conclusion, i would advice to look at specific scenarios (the common requirements and project needs) where each of this libraries may do the required job.

share|improve this answer
 
I'm actually mostly interested in doing things with images like filters and so on. Is it possible with canvas and are there any libraries which handles these things well? –  marko Sep 24 '12 at 17:37
 
I think I will settle with Kinetic JS. –  marko Sep 25 '12 at 5:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.