Description Usage Arguments See Also Examples
Draw a Quadrilateral
1 2 |
sketch |
A p5 sketch. |
x1 |
The x coordinate for the first point. |
y1 |
The y coordinate for the first point. |
x2 |
The x coordinate for the second point. |
y2 |
The y coordinate for the second point. |
x3 |
The x coordinate for the third point. |
y3 |
The y coordinate for the third point. |
x4 |
The x coordinate for the fourth point. |
y4 |
The y coordinate for the fourth point. |
Other Shape 2D Primitives: arc
,
ellipse
, line
,
point
, rect
,
triangle
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.