SCROLL -8, 1
Will scroll the part above (not including) the cursor line and:
SCROLL -8, 2
Will scroll the part below (not including) the cursor line.
As scrolling occurs, the space left by movement of the display is filled with the current Paper colour. A
second parameter 0 has no effect.
You can PAN the display in the current window left or right. The PAN statement works In a similar
manner to scroll but
Pan 40 moves display right
Pan -40 moves display left
A second parameter gives a partial PAN
0 - whole screen
3 - the whole of the line occupied by the cursor
4 - the right hand side of the line occupied by the cursor. The area of the cursor is also included.
If you are using stipples or are in 8 colour mode then windows must be panned or Scrolled in
multiples of 2 pixels.
PROBLEMS ON CHAPTER 12
1. Write a program which draws a 'Snakes and Ladders' grid of ten rows of ten rows of ten squares.
2. Place the numbers 1 to 100 in the squares starting at the bottom left and place F for finish in the
last square.
3. Draw a dartboard on the screen. It should consist of an outer ring which could hold numbers. A
'doubles' ring and 'triples' ring as shown and a centre consisting of a 'bull's eye' and a ring around
it.