draw_line_color(x1,y1,x2,y2,c1,c2)

Note: This function must be placed in the Draw Event for it to work correctly.

 

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.

 

Example:

//Draw a black and white line from our position to our last.

draw_line_color(x,y,xprevious,yprevious,c_white,c_black);

 

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

 

Yibbon(.com.au) - Revision #1