MCPcopy Index your code
hub / github.com/processing/processing / quad

Method quad

core/src/processing/core/PGraphics.java:2522–2530  ·  view source on GitHub ↗

( begin auto-generated from quad.xml ) 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. The first pair of parameters (x1,y1) sets the first vertex and the subsequent pairs should proceed clockwise

(float x1, float y1, float x2, float y2,
                   float x3, float y3, float x4, float y4)

Source from the content-addressed store, hash-verified

2520 * @param y4 y-coordinate of the fourth corner
2521 */
2522 public void quad(float x1, float y1, float x2, float y2,
2523 float x3, float y3, float x4, float y4) {
2524 beginShape(QUADS);
2525 vertex(x1, y1);
2526 vertex(x2, y2);
2527 vertex(x3, y3);
2528 vertex(x4, y4);
2529 endShape();
2530 }
2531
2532
2533

Callers 1

rectImplMethod · 0.95

Calls 3

beginShapeMethod · 0.95
vertexMethod · 0.95
endShapeMethod · 0.95

Tested by

no test coverage detected