Commodore 128 System Manual page 250

Hide thumbs Also See for 128:
Table of Contents

Advertisement

"GRAPHICS 1 " , DO, U9 BOOTS the program "GRAPHICS 1 " from
unit 9, drive 0 and executes it.
Execution begins at the start address of the program (ie where it
starts loading).
BOX
Draw box at specified position on screen
BOX [color source],X1,Y1[,X2,Y2] [.angle] [.paint]
where:
color source
x1,y1
x2, y2
angle
paint
This statement allows the user to draw a rectangle of any size on
the screen. Rotation is based on the centre of the rectangle. The
pixel cursor (PC) is located at x2, y2 after the BOX statement is
executed. The color source number must be a zero (0) or one (1 )
if in standard bit map or a 2 or 3 if in multicolor bit map mode.
Also see the GRAPHIC command for selecting the appropriate
graphic mode to be used with the BOX color source number.
Also see the LOCATE command for information on the pixel
cursor.
EXAMPLES:
BOX 1, 10,10, 60, 60
17-8
0=Background color
1 =Foreground color
2=M ulticolor 1)
3=M ulticolor 2»
Top left corner coordinate (scaled)
Bottom right corner opposite x1, y1,
(scaled); default is the PC location.
Rotation in clockwise degrees
default is 0 degrees
Paint shape with color
0=Do not paint
1=Paint
(default=0)
Only in Graphics
modes 3 and 4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

128d

Table of Contents