summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rwxr-xr-xREADME.md27
1 files changed, 12 insertions, 15 deletions
diff --git a/README.md b/README.md
index 8969b20..4f99cc1 100755
--- a/README.md
+++ b/README.md
@@ -207,45 +207,42 @@ rect.radius(10, 20)
__`returns`: `itself`__
-
-## Ellipse
-Ellipses, like rects, have two arguments, their `width` and `height`:
+## Circle
+The only argument necessary for a circle is the diameter:
```javascript
-var ellipse = draw.ellipse(200, 100)
+var circle = draw.circle(100)
```
-__`returns`: `SVG.Ellipse`__
+__`returns`: `SVG.Circle`__
-_Javascript inheritance stack: `SVG.Ellipse` < `SVG.Shape` < `SVG.Element`_
+_Javascript inheritance stack: `SVG.Circle` < `SVG.Shape` < `SVG.Element`_
### radius()
-Ellipses can also be redefined by their radii:
+Circles can also be redefined by their radius:
```javascript
-rect.radius(75, 50)
+rect.radius(75)
```
__`returns`: `itself`__
-## Circle
-The only argument necessary for a circle is the diameter:
+## Ellipse
+Ellipses, like rects, have two arguments, their `width` and `height`:
```javascript
-var circle = draw.circle(100)
+var ellipse = draw.ellipse(200, 100)
```
__`returns`: `SVG.Ellipse`__
_Javascript inheritance stack: `SVG.Ellipse` < `SVG.Shape` < `SVG.Element`_
-_Note that this generates an `<ellipse>` element instead of a `<circle>`. This choice has been made to keep the size of the library down._
-
### radius()
-Circles can also be redefined by their radius:
+Ellipses can also be redefined by their radii:
```javascript
-rect.radius(75)
+rect.radius(75, 50)
```
__`returns`: `itself`__