Files
processing4/web/reference/API/ellipse.xml
2005-01-27 06:48:42 +00:00

66 lines
1.2 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>ellipse()</name>
<category>Shape</category>
<subcategory>2D Primitives</subcategory>
<usage>Web &amp; Application</usage>
<example>
<image>ellipse_.gif</image>
<code>
ellipse(56, 46, 55, 55);
</code>
</example>
<description>
Draws an ellipse (oval) in the display window. An ellipse with an equal <b>width</b> and <b>height</b> is a circle. The first two parameters set the location, the third sets the width, and the fourth sets the height. The origin may be changed with the <b>ellipseMode()</b> function.
</description>
<syntax>
ellipse(<c>x</c>, <c>y</c>, <c>width</c>, <c>height</c>)
</syntax>
<parameter>
<label>x</label>
<description>int or float: x-coordinate of the ellipse</description>
</parameter>
<parameter>
<label>y</label>
<description>int or float: y-coordinate of the ellipse</description>
</parameter>
<parameter>
<label>width</label>
<description>int or float: width of the ellipse</description>
</parameter>
<parameter>
<label>height</label>
<description>int or float: height of the ellipse</description>
</parameter>
<returns>None</returns>
<related>
ellipseMode()
</related>
<availability>1.0</availability>
<type>Function</type>
<partof>Core</partof>
</root>