|
draw_triangle_color(x1,y1,x2,y2,x3,y3,c1,c2,c3,outline) |
|
Note: This function must be placed in the Draw Event for it to work correctly.
x1, y1 = Horizontal / vertical position of first point. x2, y2 = Horizontal / vertical position of second point. x3, y3 = Horizontal / vertical position of third point. c1 = Colour of first side of triangle. c2 = Colour of second side of triangle. c3 = Colour of third side of triangle. outline = true / false. Whether the triangle is drawn as a thin line or filled in the current colour. [true=no fill / false = fill in current colour]
Example:
Draws a triangular shape with three heads, each head is on a certain position. x1,y1 represents the first head, x2,y2 represents the second, and x3,y3 represents the third. Outline is whether or not the shape will be drawn as an outline, if it is true, the shape will be drawn as an outline, if false, it will be drawn as a full solid object. The three colors will be drawn at each side of the triangle where colour 1 is at x1,y1's side, colour 2 is at x2,y2's side, and colour 3 is at x3,y3's side.
esh_corp11 - Revision #1 |