YoYo Games Wiki

draw_triangle_color(x1,y1,x2,y2,x3,y3,c1,c2,c3,outline)

From YoYoGames Wiki

Description

Draws a triangular shape with three heads, each head is on a certain position.

Arguments

  • x1 (real): Horizontal / vertical position of first point.
  • y1 (real): horizontal position of first point.
  • x2 (real): vertical position of second point.
  • y2 (real): vertical position of second point.
  • x3 (real): horizontal position of third point.
  • y3 (real): vertical position of third point.
  • c1 (real): colour of first side of triangle.
  • c2 (real): colour of second side of triangle.
  • c3 (real): colour of third side of triangle.
  • outline (real): 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]

Explanation

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.

Remarks

See Also

Content from GMKB, was used to expand this article. The content was contributed by Eyas Sharaiha.