<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;p&gt;Draws a circle to the current point (or current row by default). &lt;br /&gt;
Options&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;:x and :y &amp;#8211; as center of the circle.&lt;/li&gt;
	&lt;li&gt;:radius &amp;#8211; as radius(in points).&lt;/li&gt;
	&lt;li&gt;:ang1 &amp;#8211; the angle of a vector from (:x , :y ) of length :radius to the first endpoint of the circle.&lt;/li&gt;
	&lt;li&gt;:ang2 &amp;#8211; the angle of a vector from (:x, :y) of length :radius to the second endpoint of the circle.&lt;/li&gt;
	&lt;li&gt;:content &amp;#8211; facade to ShapeConent with same parameters.&lt;/li&gt;
	&lt;li&gt;:border &amp;#8211; facade to Border with same parameters.&lt;/li&gt;
	&lt;li&gt;:use &amp;#8211; :arc draws counterclockwise and :arcn (arc negative) clockwise direction.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Examples using facade circle method inside Document.&lt;br /&gt;
&lt;pre&gt;&lt;code class='ruby'&gt;
  d=RGhost::Document.new
  d.circle :x =&amp;gt; 5, :y =&amp;gt; 2.5 , :radius =&amp;gt; 40
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;img src=&quot;http://www.hashcode.eti.br/static_images/circle01.png&quot; /&gt; &lt;br /&gt;
&lt;pre&gt;&lt;code class='ruby'&gt;
  d=RGhost::Document.new
  d.circle :x =&amp;gt; 5, :y =&amp;gt; 2.5 , :radius =&amp;gt; 40, :content =&amp;gt; {:fill =&amp;gt; false}
 &lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;img src=&quot;http://www.hashcode.eti.br/static_images/circle02.png&quot; /&gt; &lt;br /&gt;
&lt;pre&gt;&lt;code class='ruby'&gt;
  d=RGhost::Document.new
  d.circle :x =&amp;gt; 5, :y =&amp;gt; 2.5 , :radius =&amp;gt; 40, :content =&amp;gt; {:color =&amp;gt; &quot;#FF0000&quot;}
 &lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;img src=&quot;http://www.hashcode.eti.br/static_images/circle03.png&quot; /&gt; &lt;br /&gt;
&lt;pre&gt;&lt;code class='ruby'&gt;
  d=RGhost::Document.new
  d.circle :x =&amp;gt; 5, :y =&amp;gt; 2.5 , :radius =&amp;gt; 40, :content =&amp;gt; {:color =&amp;gt; &quot;#FF0000&quot;} ,:border =&amp;gt; {:color =&amp;gt; &quot;#FFFFFF&quot;}
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;img src=&quot;http://www.hashcode.eti.br/static_images/circle04.png&quot; /&gt; &lt;br /&gt;
&lt;pre&gt;&lt;code class='ruby'&gt; 
  d=RGhost::Document.new
  d.circle :x =&amp;gt; 5, :y =&amp;gt; 2.5 , :radius =&amp;gt; 40, :content =&amp;gt; {:color =&amp;gt; :yellow} ,:border =&amp;gt; {:color =&amp;gt; :orange, :dash =&amp;gt; [1,2,1,2], :width =&amp;gt; 20}
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;img src=&quot;http://www.hashcode.eti.br/static_images/circle05.png&quot; /&gt; &lt;br /&gt;
 &lt;pre&gt;&lt;code class='ruby'&gt;
   d=RGhost::Document.new
   colors=%w[#98AE09 #AFE099 #A971FF #CC1010 #FF7201 #34FEE1]
   6.downto(1) do |v|
     d.circle :x =&amp;gt; 5, :y =&amp;gt; 2.5 , :radius =&amp;gt; v*10, :content =&amp;gt;{:color =&amp;gt; colors[v]}
   end
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;img src=&quot;http://www.hashcode.eti.br/static_images/circle06.png&quot; /&gt;  &lt;br /&gt;
&lt;pre&gt;&lt;code class='ruby'&gt;
 d=RGhost::Document.new
 d.circle :x =&amp;gt; 5, :y =&amp;gt; 2.5 , :ang1 =&amp;gt; 90, :radius =&amp;gt; 50, :content =&amp;gt; {:fill =&amp;gt; false }
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;img src=&quot;http://www.hashcode.eti.br/static_images/circle07.png&quot; /&gt; &lt;br /&gt;
 &lt;pre&gt;&lt;code class='ruby'&gt;
 d=RGhost::Document.new
 d.circle :x =&amp;gt; 5, :y =&amp;gt; 2.5 , :ang2 =&amp;gt; 90, :radius =&amp;gt; 50, :content =&amp;gt; {:fill =&amp;gt; false }
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;img src=&quot;http://www.hashcode.eti.br/static_images/circle08.png&quot; /&gt; &lt;br /&gt;
&lt;pre&gt;&lt;code class='ruby'&gt; 
 d=RGhost::Document.new
 d.circle :x =&amp;gt; 5, :y =&amp;gt; 2.5 , :ang2 =&amp;gt; 90, :radius =&amp;gt; 50, :content =&amp;gt;{:color =&amp;gt; :green}
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;img src=&quot;http://www.hashcode.eti.br/static_images/circle09.png&quot; /&gt; &lt;br /&gt;
 &lt;pre&gt;&lt;code class='ruby'&gt;
 d=RGhost::Document.new
 d.circle :x =&amp;gt; 5, :y =&amp;gt; 2.5 , :ang2 =&amp;gt; 90, :use =&amp;gt; :arcn, :radius =&amp;gt; 50, :content =&amp;gt;{:color =&amp;gt; :green}
 &lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;img src=&quot;http://www.hashcode.eti.br/static_images/circle10.png&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Examples using Circle class&lt;br /&gt;
&lt;pre&gt;&lt;code class='ruby'&gt;
   d=RGhost::Document.new
   d.scale(3,1)
   d.set Circle.new(:x =&amp;gt; 1.5, :y =&amp;gt; 1.5 , :ang2 =&amp;gt; 180, :radius =&amp;gt; 25)
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;img src=&quot;http://www.hashcode.eti.br/static_images/circle11.png&quot; /&gt;&lt;/p&gt;</body>
  <created-at type="datetime">2009-11-27T02:28:13-08:00</created-at>
  <id type="integer">103011</id>
  <permalink>circle</permalink>
  <repository-id type="integer">89573</repository-id>
  <title>Circle</title>
  <updated-at type="datetime">2009-08-03T04:40:42-07:00</updated-at>
  <user-id type="integer">22649</user-id>
</wiki>
