The code is in the one function. Make sure you have pen added to the project. Credit if you wish. This doesnt support transparency. The inputs are in this order: (x1, y1, x2, y2, x3, y3). This supports cordinates off-screen, but if the values are too extreme some artifacts may occur. Thanks to: @Geotale @-Rex-Test- This is supposed to be just a part of a bigger project.