From: wout Date: Wed, 19 Dec 2012 16:11:22 +0000 (+0100) Subject: Updated Readme X-Git-Tag: 0.1~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3b8e557b5e1774c33ea26cb4663f850191ae6ce9;p=svg.js.git Updated Readme --- diff --git a/README.md b/README.md index 304347e..9488fea 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ Set the size of an element by a given width and height: ```javascript rect.size(200, 300); ``` -Same as with 'move()' the size of an element could be set by using 'attr()'. But because every type of element is handles its size differently the 'size()' function is much more convenient. +Same as with 'move()' the size of an element could be set by using 'attr()'. But because every type of element is handles its size differently the 'size()' method is much more convenient. #### Removing elements @@ -131,13 +131,13 @@ This will return a SVGRect element as a js object: Fill and stroke are used quite often. Therefore two convenience methods are provided: #### Fill -The 'fill()' function is a pretty alternative to the 'attr()' method: +The 'fill()' method is a pretty alternative to the 'attr()' method: ```javascript rect.fill({ color: '#f06', opacity: 0.6 }); ``` #### Stroke -The 'stroke()' function is similar to 'fill()': +The 'stroke()' method is similar to 'fill()': ```javascript rect.stroke({ color: '#f06', opacity: 0.6, width: 5 }); ```