-
Notifications
You must be signed in to change notification settings - Fork 83
drawTriangle
stevepaget edited this page Feb 16, 2016
·
1 revision
drawTriangle(x1, y1, x2, y2, x3, y3, colour, lineWidth)
Where:
The triangle consists of three points.
x1, y1 are integers representing the x and y coordinates of one of the points.
x2, y2 are integers representing the x and y coordinates of another point. The order does not matter.
x3, y3 are integers representing the x and y coordinates of the final point.
colour is a wghs colour value. (See Colours)
lineWidth is an integer representing the line width in pixels. A value of 0 gives a filled ellipse (this is the default)
Note: Pygame does not handle very thick lines very well.