( 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)
| 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 | /** |
nothing calls this directly
no test coverage detected