Commodore 128 Programmer's Reference Manual page 132

Hide thumbs Also See for 128:
Table of Contents

Advertisement

122
COMMODORE 128
10 GRAPHIC 1,3
Enter multi-color mode, turn scaling
20 SCALE 1,1000,5000
on to size (1000,5000) and draw a
30 CIRCLE 1,180,100,100,100
circle.
SSHAPE
Save shapes to string variables.
EXAMPLES:
SSHAPE A$,10,10
Saves a rectangular area from the coordinate 10,10
to the location of the pixel cursor, into string vari-
able A$.
SSHAPE B$, 20,30,47,51
Saves a rectangular area from top left coordinate
(20,30) through bottom right coordinate (47,51) into
string variable B$.
SSHAPE D$, 4-10, + 10
Saves a rectangular area 10 pixels to the right and 10
pixels down from the current position of the pixel
cursor.
WIDTH 1 Set Single width for graphic commands
WIDTH 2 Set double width for drawn lines
i
SSHAPE and GSHAPE are used to save and load rectangular areas of multi-color or bit
lj
mapped screens to/from BASIC string variables. The command to save an area of the
screen into a string variable is:
^ /
SSHAPE string variable, XI, Yl [,X2,Y2]
^
where:
.
,
string variable
String name to save data in
Lj
X1,Y1
Corner coordinate (0,0 through 319,199) (scaled)
X2,Y2
Corner coordinate opposite (XI,Yl) (default is the PC)
\ i
I I
U
) j
Lj
Also, see the example program under GSHAPE for another example.
\ i
\ (
WIDTH
°
Set the width of drawn lines.
^ ,
WIDTH n
U
This command sets the width of lines drawn using BASIC'S graphic commands to either
single or double width. Giving n a value of 1 defines a single width line; a value of 2
1
defines a double width line.
Lj
EXAMPLES:
\ >
LJ

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents