PLOT{I}{R}{H}{[]} x1,y1 to x2,y2 {to x3,y3 {to xN,yN} }

This command will plot a line between the specified points using the current graphics mode, i.e., HIRES or LORES. x1, y1, x2, y2 etc. are INTEGER EXPRESSIONS. The boundaries for the screen depend on the mode of graphics that you are using. PLOTI will INVERT all points on the line(s), whereas PLOTR will RESET all points on the line(s). PLOTH will use an inverted Y axis (i.e., the Y axis numbering starts from the top left hand corner of the screen, rather than the lower left hand corner).

Program Example.

00100 HIRES
00110 PLOT 0,0 TO 511,255 : REM Draw the line
00120 FOR I = 1 TO 800 : NEXT I : REM Simple Delay
00130 PLOTR 0,0 TO 511,255 : REM Turn off all points in path
00140 FOR I = 1 TO 800 : NEXT I : REM Simple Delay
00150 PLOT 150,255 TO 350,255 : REM Draw the line
00160 FOR I = 1 TO 500 : NEXT I : REM Simple Delay
00170 PLOTI 0,255 TO 511,255 : REM Invert all points on=off etc
00180 PLOTH 0,255 TO 511,255 : REM Use inverted Y axis
00190 FOR I = 1 TO 800 : NEXT I : REM Simple Delay
00200 REM Draw a border and then two diagonals
00210 PLOT 0,0 TO 0,255 TO 511,255 TO 511,0 TO 0,0
00220 PLOT 0,0 TO 511,255
00230 PLOT 511,0 TO 0,255
00240 GOTO 240 : REM endless loop so screen does not scroll

Try it

See also HIRES, HIRES2, LORES, PCG, SET, INVERT, RESET.