aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-07-01 21:05:39 +0100
committerwout <wout@impinc.co.uk>2013-07-01 21:05:39 +0100
commit84c4a52c439fc85d5046ea1ebad226e458faf20c (patch)
treea2030bb303a751b0293cc5819e376ca03da12e4f /README.md
parent4a6da20fd312d5ea1d3f98f1bcb3b0763a66870a (diff)
downloadsvg.js-84c4a52c439fc85d5046ea1ebad226e458faf20c.tar.gz
svg.js-84c4a52c439fc85d5046ea1ebad226e458faf20c.zip
Sets accept multiple elements at once
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index aee3b43..1d21f55 100644
--- a/README.md
+++ b/README.md
@@ -953,12 +953,18 @@ var circle = draw.circle(100).move(100,100).fill('#f09')
// create a set and add the elements
var set = draw.set()
-set.add(rect, circle)
+set.add(rect).add(circle)
// change the fill of all elements in the set at once
set.fill('#ff0')
```
+A quite useful caracteristic of sets is tha ability to accept multiple elemetns at once:
+
+```javascript
+set.add(rect, circle)
+```
+
Sets work with animations as well:
```javascript