mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 10:00:42 +01:00
84 lines
1.6 KiB
XML
84 lines
1.6 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>quad()</name>
|
|
|
|
<category>Shape</category>
|
|
|
|
<subcategory>2D Primitives</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image>quad_.gif</image>
|
|
<code>
|
|
quad(38, 31, 86, 20, 69, 63, 30, 76);
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
A quad is a quadrilateral, a four sided polygon. It is similar to a rectangle, but the angles between its edges are not constrained to ninety degrees.
|
|
</description>
|
|
|
|
<syntax>
|
|
quad(<c>x1</c>, <c>y1</c>, <c>x2</c>, <c>y2</c>, <c>x3</c>, <c>y3</c>, <c>x4</c>, <c>y4</c>);
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label>x1</label>
|
|
<description>int or float: x-coordinate of the first corner</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>y1</label>
|
|
<description>int or float: y-coordinate of the first corner</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>x2</label>
|
|
<description>int or float: x-coordinate of the second corner</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>y2</label>
|
|
<description>int or float: y-coordinate of the second corner</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>x3</label>
|
|
<description>int or float: x-coordinate of the third corner</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>y3</label>
|
|
<description>int or float: y-coordinate of the third corner</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>x4</label>
|
|
<description>int or float: x-coordinate of the fourth corner</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>y4</label>
|
|
<description>int or float: y-coordinate of the fourth corner</description>
|
|
</parameter>
|
|
|
|
<returns>None</returns>
|
|
|
|
<related></related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Function</type>
|
|
|
|
<partof>Core</partof>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</root>
|