home *** CD-ROM | disk | FTP | other *** search
- RISC OS 3's ColourTrans (0.96)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- This document describes:
- How get ColourTrans 0.96 to dither in new programs
- How to use the supplied fix to use dithering in old programs which don't
- dither without modifying them
- How to use ColourTrans 0.96 under RISC OS 2
-
-
- ColourTrans dithering
- ~~~~~~~~~~~~~~~~~~~~~
- The new version of ColourTrans can dither colours (mixing two colours on the
- screen by using small dots of each to give the impression of solid colour)
- to give a better approximation to the required colour. However, programs
- have to know about it to be able to use it.
-
- All you have to do is set bit 8 of R3 before calling ColourTrans_SetGCOL or
- ColourTrans_SetOppGCOL, and as if by magic, your colour will be dithered.
-
-
- Getting old programs to use dithering
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- It would be nice if older programs could use this new facility, but unless
- the program is written in BASIC, you can't change them. I have written a
- small 'patch' which intercepts (legally) all SetGCOL and SetOppGCOL calls
- and sets the relevant bit. To use it, just load the module 'ctAllDithr' by
- an RMLoad or double click. All applications will then use dithering. The
- module about 176 bytes long, and uses no workspace so you should be able to
- fit it in whatever machine you have.
-
- However, it has limitations. Some colour selection boxes (like for fill
- colour in Draw) will not use dithering even if the patch is loaded. This is
- because these boxes use an alternative way of finding the colour which even
- the new version of ColourTrans cannot make to dither. However, you will
- usually find that the pictures drawn (eg draw files) will be dithered.
-
- The effect of this patch is to make most graphics be dithered and some
- colour selection boxes.
-
-
- Using ColourTrans 0.92 under RISC OS 2
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- It is possible to run the new version of ColourTrans under RISC OS 2 as long
- as the patch is used. First you must extract the module from a machine with
- RISC OS 3 (only A5000s at the moment). As I have no desire to break any
- copyright laws it is not supplied with this document - you will have to
- extract it for yourself.
-
- To extract ColourTrans from ROM on an A5000 with RISC OS 3 (25 Sep 1991)
- (check this by typing 'fx 0' at the command line), type the following in at
- the command line to save the module to the current directory:
-
- *Save Colours &038A5664 &038A8138
- *Settype Colours Module
-
- This probably will not work with any other version of RISC OS 3 (ie the one
- for non-A5000s which hasn't been released yet). To extract the module, you
- will need to find the start and end addresses of the module. To do this, at
- the command line type 'modules'. You will get a list of the currently loaded
- modules.
-
- The second column is the start position of the module in memory (the first
- number on the *save command above). The second number should be the start
- position of the NEXT module in the listing (NOT the number in the third
- column). As an example, here is part of the *modules listing:
-
- 20 038A0E84 00000000 BASICTrans
- 21 038A4780 01803554 BufferManager
- 22 038A5664 01819CA4 ColourTrans <<-- this is ColourTrans
- 23 038A8138 01803574 Debugger <<-- and this is the next module
- 24 038AA548 01803764 DeviceFS
- 25 038AC29C 01803794 DragASprite
- | | \- module name
- | \- ignore these numbers
- \- these are the numbers you use
-
- From this listing, you will get the *save command listed above.
-
- If you do not understand the instructions above, get someone else who is a
- bit more familiar with RISC OS to do this for you.
-
- Once you have an extracted copy of ColourTrans, load it into a RISC OS 2
- machine along with the patch, and you will get dithered colours. Load the
- patch AFTER the new ColourTrans.
-
-
- Disclaimer
- ~~~~~~~~~~
- I do not guarantee that either the patch or the extracted ColourTrans will
- work, and you use them at your own risk.
-
- However, I have tested the patch thoroughly, and can see no reason why the
- new ColourTrans should not work. The patch has worked perfectly (bearing in
- mind the limitation described), and is so simple is it very unlikely it will
- go wrong.
-
- Test the patch with all the applications which you will want to use it with
- before using it for real.
-
-
-
-
- Use and enjoy.
-
-
-
- Ben Summers 27/2/92
-
-
-