quad()
Shape / 2D PrimitivesDescription
Draws a quadrilateral (a four-sided polygon) using the x and y coordinates of its four vertices.
Syntax
void quad(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
Parameters
| Name | Type | Description |
|---|---|---|
| x1 | float | x of first vertex |
| y1 | float | y of first vertex |
| x2 | float | x of second vertex |
| y2 | float | y of second vertex |
| x3 | float | x of third vertex |
| y3 | float | y of third vertex |
| x4 | float | x of fourth vertex |
| y4 | float | y of fourth vertex |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...