Sketchpad
A simple sketchpad project. (Live Demo)
Authors
Instalation
To install Sketchpad via Bower:
$ bower install sketchpad --save
or use npm:
npm install sketchpad
Usage
Having a canvas on the DOM:
You should simply configure it by instantiating the Sketchpad:
var sketchpad = element: '#sketchpad' width: 400 height: 400;
After that, the API provides a variety of functionalities:
// undosketchpad; // redosketchpad; // Change colorsketchpadcolor = '#FF0000'; // Change stroke sizesketchpadpenSize = 10; // Playback each sketchpad stroke (10 ms is the time between each line piece)sketchpad;
For more documentation about the project, visit: TBA
Contribute
Just send PR :-)