aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-02 17:31:46 +0100
committerwout <wout@impinc.co.uk>2013-03-02 17:31:46 +0100
commitca15876e17a1acce4909837af97d97995d0f5b23 (patch)
tree12d4646b807fac8d4398f0902c2c5fc8196f49d0 /README.md
parent028bf91551d01567b4cb3d971ba51fa57c4a81ef (diff)
downloadsvg.js-ca15876e17a1acce4909837af97d97995d0f5b23.tar.gz
svg.js-ca15876e17a1acce4909837af97d97995d0f5b23.zip
Improved rotate() method in sugar module
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 34e97dd..b0301d3 100644
--- a/README.md
+++ b/README.md
@@ -454,6 +454,13 @@ The `rotate()` method will automatically rotate elements according to the center
rect.rotate(45)
```
+Although you can also define a specific rotation point:
+
+```javascript
+// rotate(degrees, cx, cy)
+rect.rotate(45, 50, 50)
+```
+
### Skew
The `skew()` method will take an `x` and `y` value: