draw_line_color(x1,y1,x2,y2,c1,c2)
From YoYoGames Wiki
Description
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.
Arguments
- x1 (real): horizontal start of the line.
- y1 (real): vertical start of the line.
- x2 (real): horizontal end of the line.
- y2 (real): vertical end of the line.
- c1 (real): first colour for gradient.
- c2 (real): second colour for gradient.
Remarks
- Must be in Draw Event or used with Surfaces.
See Also
Content from GMKB, was used to expand this article. The content was contributed by Yibbon(.com.au).

