sketch

Sketch canvas drawing component

Sketch

Turn a canvas into a sketch pad.

$ component install component/sketch

Turn the given canvas into a sketch pad.

var sketch = require('sketch');
sketch(canvas);

Set pen size.

Set pen color.

Set pen opacity.

Clear the paths and re-draw.

Reset the sketch defaults and clear the canvas.

MIT