triangle
Draws a triangle outline on the image.
Return
A new Image object with the triangle drawn on the image
Parameters
x1
The X coordinate of the first vertex
y1
The Y coordinate of the first vertex
x2
The X coordinate of the second vertex
y2
The Y coordinate of the second vertex
x3
The X coordinate of the third vertex
y3
The Y coordinate of the third vertex
color
The color of the outline