MCPcopy Index your code
hub / github.com/benfry/processing4 / quad

Method quad

core/src/processing/core/PGraphics.java:2610–2618  ·  view source on GitHub ↗

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 or counter-clockwise around the defined

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

Source from the content-addressed store, hash-verified

2608 * @param y4 y-coordinate of the fourth corner
2609 */
2610 public void quad(float x1, float y1, float x2, float y2,
2611 float x3, float y3, float x4, float y4) {
2612 beginShape(QUADS);
2613 vertex(x1, y1);
2614 vertex(x2, y2);
2615 vertex(x3, y3);
2616 vertex(x4, y4);
2617 endShape();
2618 }
2619
2620
2621

Callers 1

rectImplMethod · 0.95

Calls 3

beginShapeMethod · 0.95
vertexMethod · 0.95
endShapeMethod · 0.95

Tested by

no test coverage detected