Help > REFERENCE OF THE BUILT-IN FUNCTIONS > User Interface and Graphics > line


line (int_x1, int_y1, int_x2, int_y2, int_colour);

Draw line from screen coordinates (x1,y1) to screen coordinates (x2,y2), with specified colour. If any part of the line is outside of the screen boundaries, only the visible remainder is drawn.

The function has no effect in the console or on text-only displays.