This allows you to draw the outline of custom shapes. This includes triangles, quadrilaterals, or something much more complex.
Depending on which function your using, the points can be provided in 1 or 2 arrays, and can be translated along the x and y axis.
Draws a polygon outline using the points given. The 'points' array is presumed to be an array of numbers, in the order of x, y, x, y, x, y, and so on.
Draws a polygon, in the same way as the previous 'drawPolygon' function, but when drawn it is translated by the x and y values given.
This version of 'drawPolygon' takes separate arrays for the x and y values.
Takes separate arrays for the x and y points of the polygon, and allows you to translate it by the 'x' and 'y' values given.