draw_line(x1,y1,x2,y2)

Drag & Drop equivalent : GM117

 

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.

 

This function draws a 1 pixel line from x1,y1 to x2,y2. To draw a horizontal line, both y1 and y2 should be the same number, To draw a vertical line, both x1 and x2 should be the same number.

 

Example

draw_line(10,10,100,10);

 

Revision #1