From: wout Date: Sun, 23 Dec 2012 11:35:14 +0000 (+0100) Subject: Updated readme X-Git-Tag: 0.2~75 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6bad14d2921ca74cbe7a8d18508c9f9d1b65ca47;p=svg.js.git Updated readme --- diff --git a/README.md b/README.md index f279990..9cb17d9 100644 --- a/README.md +++ b/README.md @@ -46,13 +46,20 @@ Ellipses, like rects, have two arguments, their width and height: ```javascript var ellipse = draw.ellipse(100, 100); ``` - +This element type has an extra method to move it by its 'cx' and 'cy' values: +```javascript +ellipse.center(150, 150); +``` ### Circle The only argument necessary for a circle is the diameter: ```javascript var circle = draw.circle(100); ``` +Like ellipse this element type has an extra method to move it by its 'cx' and 'cy' values: +```javascript +circle.center(150, 150); +``` ### Text