triangle()Shape2D PrimitivesWeb & Applicationtriangle_.gif
triangle(30, 75, 58, 20, 86, 75);
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.
triangle(x1, y1, x2, y2, x3, y3);
int or float: x-coordinate of the first pointint or float: y-coordinate of the first pointint or float: x-coordinate of the second pointint or float: y-coordinate of the second pointint or float: x-coordinate of the third pointint or float: y-coordinate of the third pointNone
beginShape()
1.0FunctionCore