Pencil.js

Nice modular interactive 2D drawing library …

Pencil.js aims to abstract drawing with code with a clear OOP syntax.
Its modular architecture allow to grab or replace every block.
And of course, it has a concise and complete documentation to never feel lost.
It is promised that it'll always work as you expect !

Examples

A simple Black triangle

Many drawing possibilities...

And lots of different shapes !