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

Method triangle

core/src/processing/core/PGraphics.java:2492–2499  ·  view source on GitHub ↗

( begin auto-generated from triangle.xml ) A triangle is a plane created by connecting three points. The first two arguments specify the first point, the middle two arguments specify the second point, and the last two arguments specify the third point. ( end auto-generated ) @webref shape:2d_primi

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

Source from the content-addressed store, hash-verified

2490 * @see PApplet#beginShape()
2491 */
2492 public void triangle(float x1, float y1, float x2, float y2,
2493 float x3, float y3) {
2494 beginShape(TRIANGLES);
2495 vertex(x1, y1);
2496 vertex(x2, y2);
2497 vertex(x3, y3);
2498 endShape();
2499 }
2500
2501
2502 /**

Callers

nothing calls this directly

Calls 3

beginShapeMethod · 0.95
vertexMethod · 0.95
endShapeMethod · 0.95

Tested by

no test coverage detected