Update README.md

This commit is contained in:
Preet
2017-01-13 00:40:14 -08:00
committed by GitHub
parent b18878e6f2
commit 8bd47bf703

View File

@@ -21,8 +21,9 @@ Import rough.js
```
Initialize a **RoughCanvas** object by passing in the canvas node and the size of the canvas.
Following code snippet draws a
Following code snippet draws a rectangle.
![Rough,js rectangle](https://pshihn.github.io/rough/images/cap_rect.png)
``` javascript
var rough = new RoughCanvas(document.getElementById('myCanvas'), 400, 200);
rough.rectangle(10, 10, 200, 200); // x, y, width, height