From 3b8e557b5e1774c33ea26cb4663f850191ae6ce9 Mon Sep 17 00:00:00 2001 From: wout Date: Wed, 19 Dec 2012 17:11:22 +0100 Subject: [PATCH] Updated Readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }); ``` -- 2.39.5