AMSTRAD cpc 6128 User Instruction page 76

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

On the screen you will see a triangle. Move the graphics cursor to the centre of the
screen by typing in:
move 320,200 .
Using the keyword F ILL followed by a pen number, for example 3, we will now
F ILL the screen using the specified pen, from the current graphics cursor position
(centre screen) to the drawn boundaries. Type in:
f iLL 3
Now move the graphics cursor outside the triangle by typing in:
move 0,0
See what happens when you type in:
f iLL 2
The computer has used pen number 2 to F ILL the area bounded by the drawn lines
and by the edges of the screen.
Now alter the program by typing in the following lines, and see what happens:
50 draw 50,50
60 move 320,200
70
fiLL
3
run
You will note that any gaps in the drawnbollhaarieslettne--inkIrom tnepen'seep'
through!
This point is further demonstrated by F I L Ling first a plotted circle, then a drawn
circle. Type in:
new
10 CLS
20 FOR a=1 TO 360
30 ORIGIN 320,200
40 PLOT 190*COS(a),190*SIN(a)
50 NEXT
60 MOVE -188,0
70 FILL 3
run
Foundation Course
I
',--,
' .
j
.~
Chapter 1 Page 63

Advertisement

Table of Contents
loading

Table of Contents

Save PDF