summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-19 17:11:22 +0100
committerwout <wout@impinc.co.uk>2012-12-19 17:11:22 +0100
commit3b8e557b5e1774c33ea26cb4663f850191ae6ce9 (patch)
tree5706e0182775883df8ce036deae8191eeb2d0e5b
parentb398d7bb450098fe5f1ed296e0b1a19876760ce0 (diff)
downloadsvg.js-3b8e557b5e1774c33ea26cb4663f850191ae6ce9.tar.gz
svg.js-3b8e557b5e1774c33ea26cb4663f850191ae6ce9.zip
Updated Readme
-rw-r--r--README.md6
1 files 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 });
```