Draw files from Basic in Colour
by Michael Janse

This program is based on the program by Gordon Gilmore for creating Draw files directly from sets of procedures in Basic (see RISC User 5:5, 5:6, 5:8, 6:2 & 6:3). The advantage over earlier versions is that the present version uses red-green-blue (RGB) values rather than the palette colour numbers. This gives the present version more subtle control over the range of colours available. Try displaying RG0Test in a 256-colour mode like mode 15.

Double-clicking on this application creates two Draw files, stored in a private directory within the application which is opened to view.

The Draw file called 'Test' contains examples of text objects and line drawings. Note that the program uses the fonts Trinity and Homerton. This may be changed by altering lines 160 to 180, together with the lines that print 'Homerton' and 'Trinity' in the geometrical shapes. Note also that if the fonts are changed, the dimensions of the geometrical objects will need changing because of the different widths of the same text in different fonts.

The other Draw file, called 'RG0Test', is a colour block composed of rectangles of different colours. Different colour ranges can be created by changing line 660, for example:

660 red%=Row%: green%=255-Col%: blue%=Col%

or

660 red%=Row%: green%=255-Col%: blue%=255


 RISC User 1993
