EasyManua.ls Logo

Commodore 128 - Page 250

Commodore 128
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
"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 0=Background color
1 =Foreground color
2=Multicolor 1) Only in Graphics
3=Multicolor 2» modes 3 and 4
x1,y1
Top left corner coordinate (scaled)
x2, y2
Bottom right corner opposite x1, y1,
(scaled); default is the PC location.
angle Rotation in clockwise degrees
default is 0 degrees
paint
Paint shape with color
0=Do not paint
1=Paint
(default=0)
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

Table of Contents

Other manuals for Commodore 128

Related product manuals