Sinclair QL Beginner's Manual page 77

Hide thumbs Also See for QL:
Table of Contents

Advertisement

512 pixels across numbered 0 to 511
256 pixels down numbered 0 to 255
4 colours
COLOUR
You can select a colour by using the following code in combination with suitable keywords such as
PAPER, INK etc. Note that the numbers by themselves mean nothing. The numbers are only
interpreted as colours when they are used with PAPER and INK, etc.
8 Colour Mode
Black
Blue
Red
Magenta
Green
Cyan
Yellow
white
For example INK 3 would give magenta in MODE 8.
STIPPLES
You can if you wish specify two colours in a suitable statement. For example 2,4 would give a
chequerboard stipple as shown. In each group of four pixels two would be red (code 2) corresponding
to the colour selected first. The other two pixels would be a contrast It is not really possible to display
this effect on a domestic television set.
If you write:
INK 2,4
the mix colour is formed from the two codes 2 and 4. We will call these choices colour and contrast!
INK colour, contrast
You can find out what the stipple effects are by trying them but we give more technical details below.
100 REMark Colour/Contrast
110 FOR colour = 0 TO 7 STEP 2
120
PAPER colour : CLS
140
FOR contrast = 0 TO 7 STEP 2
150
BLOCK 100,50,40,50,colour,contrast
160
PAUSE 50
170
END FOR contrast
Code
4 Colour Mode
0
Black
1
Black
2
Red
3
Red
4
Green
5
Green
6
White
7
white

Advertisement

Table of Contents
loading

Table of Contents