Click Here To Go To The Your Computer Archive



Written By Tom Griffejoen


Cover Art
Click Here To Enlarge Loading Screen

Loading Screen
Click Here To Enlarge Opening Screen

Opening Screen
Click Here To Enlarge Screenshot

Game Screenshot

Extra Colours

Tom Griffejoen, France

This demonstration program, listing 1, shows how you can use ten colours out of 36 on your Electron or BBC Micro in four colour modes and three out of 36 in two-colour modes. The program doesn't work in Modes 2 and 5.

These colours can only be used as background colour, by filling a part of the screen with CHR$224, the two colours to be mixed being respectively the fore- and background colours. When you print any text over the coloured surface - in graphics mode after VDU5 - this text will be practically unreadable. That's why the second program is used. It enables you to print double-width characters. When these are printed over a coloured surface, they'll be more readable.

To see the demonstration, type in the first program and save it. Then type in the second one - don't forget to type NEW - and save it behind the first under the name DPRINTrout. Now reload the first program, and RUN it. It will load the second one and stop then. Type RUN again to see the colours. If it does not start Searching on the cassette after you've typed RUN for the first time, try it again after having reset L% to 0. If it still doesn't work then, there probably is a bug in your program.

The second program can also be used on its own, in another program. You should then pass the mode in mode% and when you want the text to be printed at the graphics cursor, graphics% has to be True, otherwise False. To print something in double-width characters, type PROCDPRINT(X%,Y%,string$), where X% and Y% are the co-ordinates of the first character, and string$ is the text you want to be printed. This is much like the command PRINTTAB(X%,Y%)string$.

To merge the second program with your program, type OSCLI"LOAD""DPRINTrout"""+STR$~(TOP-2). The computer should now start loading. When it has finished, type END, then LIST and the programs are merged.