Home
Free Midlets
Help

DRAWLINE

Syntax: DRAWLINE fromX, fromY, toX, toY

The DRAWTO command causes a line of pixels to be draw from the last pixel plotted to the pixel specified by (x, y). The line is drawn using the current colour as set by the SETCOLOR command.

Example

10 REM DRAW DIAGONAL GREEN CROSS ON SCREEN
20 CLS
30 W=WIDTH()
40 H=HEIGHT()
50 SETCOLOR 0, 255, 0
60 DRAWLINE 0,0,W,H
70 DRAWLINE W,0,0,H