<code>var c = paper.rect(10, 10, 100, 50, 10);</code></pre>
<h2id="ellipse">
<h3id="ellipse">
ellipse
</h2>
</h3>
<p>
Creates an ellipse.
</p>
<h3>Parameters</h3>
<h4>Parameters</h4>
<ol>
<li>x <em>number</em> X coordinate of the centre</li>
<li>y <em>number</em> X coordinate of the centre</li>
<li>rx <em>number</em> Horisontal radius</li>
<li>ry <em>number</em> Vertical radius</li>
</ol>
<h4>Usage</h4>
<preclass="javascript code"><code>var c = paper.ellipse(100, 100, 30, 40);</code></pre>
<h3id="image">
image
</h3>
<p>
Embeds an image in SVG/VML area.
</p>
<h4>Parameters</h4>
<ol>
<li>src <em>string</em></li>
<li>x <em>number</em></li>
<li>y <em>number</em></li>
<li>rx<em>number</em></li>
<li>ry<em>number</em></li>
<li>width<em>number</em></li>
<li>height<em>number</em></li>
</ol>
<h3>Usage</h3>
<preclass="javascript code"><code>var c = paper.ellipse(100, 100, 30, 40);</code></pre>
<h2id="path">
<h4>Usage</h4>
<preclass="javascript code"><code>var c = paper.image("apple.png", 10, 10, 100, 100);</code></pre>
<h3id="path">
path
</h2>
</h3>
<p>
Initialise path drawing. In general case this function returns empty path object. To draw path use built in methods like <code>lineTo</code> and <code>curveTo</code>.
</p>
<h3>Parameters</h3>
<h4>Parameters</h4>
<ol>
<li>params <em>object</em> Similar to object for <code><ahref="#attr">attr</a></code> method</li>
<li>pathString <em>string</em> [optional] path in SVG path string format. See SVG documentation.</li>
</ol>
<h3>Usage</h3>
<h4>Usage</h4>
<preclass="javascript code"><code>var c = paper.path({stroke: "#036"}).moveTo(10, 10).lineTo(50, 50);</code></pre>
<h2id="absolutely">
<h2>Path Methods</h2>
<h3id="absolutely">
absolutely
</h2>
</h3>
<p>
Sets trigger to count all following units as absolute ones, unless said otherwise. [<em>on by default</em>]
</p>
<h3>Usage</h3>
<h4>Usage</h4>
<preclass="javascript code"><code>var c = paper.path({stroke: "#036"}).absolutely()
.moveTo(10, 10).lineTo(50, 50);</code></pre>
<h2id="relatively">
<h3id="relatively">
relatively
</h2>
</h3>
<p>
Sets trigger to count all following units as relative ones, unless said otherwise.
</p>
<h3>Usage</h3>
<h4>Usage</h4>
<preclass="javascript code"><code>var c = paper.path({stroke: "#036"}).relatively()
.moveTo(10, 10).lineTo(50, 50);</code></pre>
<h2id="redraw">
redraw
</h2>
<p>
Redraws the path. Make sense to use when points has been changed. This is possible via accessing <code>path</code>
property of the object. This property is array of objects representing commands given to path.