AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Offset:          68  (&44)
Set up by:     you - use ZapRedraw_CreatePalette

This is a pointer to the palette table. All colours are specified
as offsets in the palette table. Thus if you set r_for to 1 then the module
will look up the word at offset 4*1 in the palette table when it comes to
printing a character.

r_palette format
DSA MODE:
The palette consists of a list of words giving the colour 'mask' to use for
this colour. The mask is duplicated to fill the word out. For example, in a
16 colour mode, the mask &AAAAAAAA would stand for actual screen
colour 10. The table:

r_palette ->     &33333333
          &66666666
          &AAAAAAAA
          &00000000

would cause 3 to be poked into the screen when in zap colour 0, 6 when in
zap colour 1 etc. The masks will usually correspond to the wimp colours. The
SWI ZapRedraw_CreatePalette is provided to set them up.

The actual value poked into the screen is: (Foreground mask AND bitmap) OR
(Background mask BIC bitmap) where the bitmap is as specified in r_caddr.

VDU MODE:
The palette consists of a list of words giving the 24 bit colour required.
The word is in the form of a standard palette entry. Ie, &BBGGRRxx where &BB
is the amount of blue etc. These will usually be set up by reading the wimp
palette. The SWI ZapRedraw_CreatePalette will do this for you.
ColourTrans calls will be used during the redraw to find
the closest available GCOL colour.

[sh-index] Back to list of manuals