From 566407cb328263f1bf155401015da5f269d3dcb7 Mon Sep 17 00:00:00 2001 From: wout Date: Wed, 25 Jun 2014 15:08:09 +0200 Subject: Updated README --- README.md | 27 ++++++++++++--------------- 1 file 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 `` element instead of a ``. 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`__ -- cgit v1.2.3