GLBasic User Manual

Main sections

DRAWLINE

DRAWLINE sx%, sy%, ex%, ey%, color%



Draws a line from (sx%, sy%) to (ex%, ey%) with color color%.

Sample:
 
DRAWLINE 100, 100, 250, 100, RGB(0, 255, 255) // Cyan
SHOWSCREEN
MOUSEWAIT

See also...