EasyManua.ls Logo

Sinclair QL - Page 87

Sinclair QL
135 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...
amount of curvature
The first two items are straightforward but the amount of curvature is not so easy. You can do it by
drawing accurately or by trial and error but you must decide what angle the arc subtends and then
specify the angle in radians. An angle of 1.5 radians would give a sharp bend and a small angle would
give a very gentle curvature. Try for example:
ARC 10,50 TO 50,90,1
which gives a moderate curvature in the current INK colour.
FILL
You can fill a closed shape with the current INK colour by simply writing:
FILL 1
before the shape is drawn. The following program produces a green circle.
INK 4
FILL 1
CIRCLE 50,50,30
The FILL command works by drawing touching horizontal lines between suitable points. The
statement:
FILL 0
Will turn off the FILL effect.
SCROLLING AND PANNING
You can scroll or pan the display in a window like a film cameraman. You arrange scrolling In terms of
pixels. A positive number of pixels indicates upwards scrolling, thus
SCROLL 10
Moves the display in the current window or screen 10 pixels downwards.
SCROLL -8
Moves the display 8 pixels up. You can add a second parameter to induce part-scrolling.

Other manuals for Sinclair QL

Related product manuals