Update README.md

This commit is contained in:
Preet
2017-01-12 23:19:45 -08:00
committed by GitHub
parent 56541cbd0f
commit 72d304ab00

View File

@@ -11,10 +11,13 @@ Rough.js borrows some core algorithms from Handy, but it is _not a JS port_ for
The latest Rough.js release (beta version 0.1): [Download](./rough.zip)
## How to use Rough.js
### Setup
Initialize a **RoughCanvas** object by passing in the canvas node and the size of the canvas.
Following code snippet draws a
```javascript
``` javascript
var rough = new RoughCanvas(document.getElementById('myCanvas'), 500, 500);
rough.rectangle(10, 10, 200, 200);
```