GM: draw line color

From GMpedia.org Wiki

Jump to: navigation, search
The correct title of this article is draw_line_color(x1,y1,x2,y2,c1,c2). It appears incorrectly here because of technical restrictions.

draw_line()

Type: function
Arguments: x1, y1 = Horizontal / vertical start of the line.

x2, y2 = Horizontal / vertical end of the line. c1 = First colour for gradient. c2 = Second colour for gradient.

Limitations: must be in Draw Event or used with Surfaces.

This function works just like draw_line(), except you can choose two colors to draw it with. A gradient is made between the two. c1 is placed at the first coordinates.

[edit] See Also

This article was originally found at the Game Maker Knowledge Base, contributed by Yibbon(.com.au).
See the talk page for details
Personal tools