aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-28 00:17:04 +0100
committerwout <wout@impinc.co.uk>2012-12-28 00:17:04 +0100
commit54cc2cc1aef573d247fd8cecf0870f67e2ffbd4e (patch)
tree6c1ab7cc9158a9ff24deaacfa526858636a90a8b /README.md
parentd97618864b73d4347d231369403ebfb16cdf9d62 (diff)
downloadsvg.js-54cc2cc1aef573d247fd8cecf0870f67e2ffbd4e.tar.gz
svg.js-54cc2cc1aef573d247fd8cecf0870f67e2ffbd4e.zip
Added image size as arguments
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index c8d727c..a7b768d 100644
--- a/README.md
+++ b/README.md
@@ -79,7 +79,8 @@ text.font({
### Image
When creating images the width and height values should be defined:
```javascript
-var image = draw.image('/path/to/image.jpg').move(100, 100).size(200, 200);
+// image(src, width, height)
+var image = draw.image('/path/to/image.jpg', 200, 200).move(100, 100);
```