From c34cd51a36d015a7bb60e9056db59b6b16909593 Mon Sep 17 00:00:00 2001 From: wout Date: Fri, 28 Dec 2012 00:25:50 +0100 Subject: Updated README on image --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a7b768d..6952164 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,8 @@ text.font({ ### Image -When creating images the width and height values should be defined: +When creating images the `width` and `height` values should be defined: + ```javascript // image(src, width, height) var image = draw.image('/path/to/image.jpg', 200, 200).move(100, 100); @@ -86,6 +87,7 @@ var image = draw.image('/path/to/image.jpg', 200, 200).move(100, 100); ### Path Pass the path string as the first argument: + ```javascript var path = draw.path('M10,20L30,40').attr({ fill: '#9dffd3' }); ``` -- cgit v1.2.3