diff options
author | wout <wout@impinc.co.uk> | 2012-12-28 00:25:50 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-28 00:25:50 +0100 |
commit | c34cd51a36d015a7bb60e9056db59b6b16909593 (patch) | |
tree | ed3ad6f9d7f522ba105c7e606f70b635f56d5667 | |
parent | 54cc2cc1aef573d247fd8cecf0870f67e2ffbd4e (diff) | |
download | svg.js-c34cd51a36d015a7bb60e9056db59b6b16909593.tar.gz svg.js-c34cd51a36d015a7bb60e9056db59b6b16909593.zip |
Updated README on image
-rw-r--r-- | README.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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' }); ``` |