From f94b5fc3cbe546eed856ab3f349bee9acc071fd7 Mon Sep 17 00:00:00 2001 From: Preet Date: Thu, 12 Jan 2017 00:35:28 -0800 Subject: [PATCH] Update README.md --- docs/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 603c3ad..0b9bcf1 100644 --- a/docs/README.md +++ b/docs/README.md @@ -14,12 +14,15 @@ The latest Rough.js release (beta version 0.1): [Download](./rough.zip) ## Setup Initialize a **RoughCanvas** object by passing in the canvas node and the size of the canvas. Following code snippet draws a rectangle. -``` +```html +``` +```javascript var rough = new RoughCanvas(document.getElementById('myCanvas'), 500, 500); rough.rectangle(10, 10, 200, 200); ``` + ## Drawing lines and shapes ### Filling