See section 11.8.1 for the triangle command in the plane.
The triangle takes as arguments three points.
triangle returns and draws the triangle determined by these points.
Input:
then:
Output: