From 6c5fd9d7ed49bd9dbb46553c1f63b48bfd107ddc Mon Sep 17 00:00:00 2001 From: Preet Date: Thu, 12 Jan 2017 00:36:37 -0800 Subject: [PATCH] Update README.md --- docs/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index 0b9bcf1..844d4ad 100644 --- a/docs/README.md +++ b/docs/README.md @@ -10,8 +10,8 @@ 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 +## 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 rectangle. ```html @@ -23,7 +23,7 @@ var rough = new RoughCanvas(document.getElementById('myCanvas'), 500, 500); rough.rectangle(10, 10, 200, 200); ``` -## Drawing lines and shapes +### Drawing lines and shapes ### Filling