| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### quad()
Examples |  |
    quad(38, 31, 86, 20, 69, 63, 30, 76);
Description |  | A quad is a quadrilateral, a four sided polygon. It is similar to a rectangle, but the angles between its edges are not constrainted to ninety degrees.
Syntax |  |
    quad(x1, y1, x2, y2, x3, y3, x4, y4);
Parameters |  |
x1 |  | int or float: x-coordinate of the first corner
y1 |  | int or float: y-coordinate of the first corner
x2 |  | int or float: x-coordinate of the second corner
y2 |  | int or float: y-coordinate of the second corner
x3 |  | int or float: x-coordinate of the third corner
y3 |  | int or float: y-coordinate of the third corner
x4 |  | int or float: x-coordinate of the fourth corner
y4 |  | int or float: y-coordinate of the fourth corner
Returns |  | None
Usage |  | Web & Application

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |