0.2.0 • Published 11 years ago

sketch v0.2.0

Weekly downloads
35
License
-
Repository
-
Last release
11 years ago

Sketch

Turn a canvas into a sketch pad.

js canvas sketch

Installation

$ component install component/sketch

API

sketch(canvas)

Turn the given canvas into a sketch pad.

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

Sketch#size(n)

Set pen size.

Sketch#color(string)

Set pen color.

Sketch#opacity(n)

Set pen opacity.

Sketch#clear()

Clear the paths and re-draw.

Sketch#reset()

Reset the sketch defaults and clear the canvas.

License

MIT

0.2.0

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago