triangle

Static triangle 

Source
pub static triangle: TriangleInternalType
Expand description

Draws a triangle to the canvas. 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.

Examples

triangle(30, 75, 58, 20, 86, 75);

Parameters

x1 x-coordinate of the first point

y1 y-coordinate of the first point

x2 x-coordinate of the second point

y2 y-coordinate of the second point

x3 x-coordinate of the third point

y3 y-coordinate of the third point