Commodore 128 Programmer's Reference Manual page 51

Hide thumbs Also See for 128:
Table of Contents

Advertisement

n
n
n
n
n
n
n
n
n
BASIC BUILDING BLOCKS AND BASIC 7.0 ENCYCLOPEDIA
41
DRAW
Draw dots, lines and shapes at specified positions on the screen
DRAW [color source] [,X1, Y1][TO X2, Y2] . . .
where:
Color source
0 = Bit map background
1 = Bit map foreground
2 = Multi-color 1
3 = Multi-color 2
XI,Yl
Starting coordinate (0,0 through 319,199)
X2,Y2
Ending coordinate (0,0 through 319,199)
EXAMPLES:
DRAW 1, 100, 50
Draw a dot.
DRAW , 10,10 TO 100,60
Draw a line.
DRAW , 10,10 TO 10,60 TO 100,60 TO 10,10
Draw a triangle.
DRAW 1, 120;45
Draw a dot 45° relative and 120 pixels
away from the current pixel cursor
position.
DRAW
Draw a dot at the present pixel cursor
position. Use LOCATE to position the
pixel cursor.
You may omit a parameter but you still must include the comma that would have
followed the unspecified parameter. Omitted parameters take on the default values.
DSAVE
Save a BASIC program file to disk
DSAVE "filename" [,Ddrive number][<ON|,>Udevice number]
EXAMPLES:
DSAVE "BANKRECS"
Saves the program "BANKRECS" to disk.
DSAVE (A$)
Saves the disk program named in the variable A$.
DSAVE "PROG 3",D1,U9
Saves the program "PROG3" to disk on unit num
ber 9, drive 1.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents