This reference is for Processing 3.0+. If you have a previous version, use the reference included with your software in the Help menu. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.
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)
||float: x-coordinate of the first point
||float: y-coordinate of the first point
||float: x-coordinate of the second point
||float: y-coordinate of the second point
||float: x-coordinate of the third point
||float: y-coordinate of the third point
Updated on June 24, 2016 00:34:47pm EDT