summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-17 21:59:07 +0100
committerwout <wout@impinc.co.uk>2012-12-17 21:59:07 +0100
commit65ed9894618ad6b262c91f2b425461643484ab08 (patch)
tree516ae45fdd302a03fa66bbe9dfa6634a5339a10e /README.md
parent8cab4433d5911bd6575dfae2ec5e8f1f2f64792c (diff)
downloadsvg.js-65ed9894618ad6b262c91f2b425461643484ab08.tar.gz
svg.js-65ed9894618ad6b262c91f2b425461643484ab08.zip
Updated readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2a6d204..bf65f01 100644
--- a/README.md
+++ b/README.md
@@ -69,6 +69,25 @@ 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.
+#### Fill
+The 'fill()' function is a pretty alternative to the 'attr()' method:
+```javascript
+rect.fill({ color: '#f06', opacity: 0.6 });
+```
+
+#### Stroke
+The 'stroke()' function is similar to 'fill()':
+```javascript
+rect.stroke({ color: '#f06', opacity: 0.6, width: 5 });
+```
+
+#### Removing elements
+Pretty straightforward:
+```javascript
+rect.remove();
+```
+
+
### Path element
```javascript