diff options
author | wout <wout@impinc.co.uk> | 2013-03-02 17:31:46 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-03-02 17:31:46 +0100 |
commit | ca15876e17a1acce4909837af97d97995d0f5b23 (patch) | |
tree | 12d4646b807fac8d4398f0902c2c5fc8196f49d0 /README.md | |
parent | 028bf91551d01567b4cb3d971ba51fa57c4a81ef (diff) | |
download | svg.js-ca15876e17a1acce4909837af97d97995d0f5b23.tar.gz svg.js-ca15876e17a1acce4909837af97d97995d0f5b23.zip |
Improved rotate() method in sugar module
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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: |