application reads a palette
of colours from an NDF
, stored as red, green and blue
intensities, to fill the portion of the current graphics device’s
colour table which
is reserved for the palette. The palette comprises 16 colours and is intended to
provide coloured annotations, borders, axes, graphs etc.
that are unaffected
by changes to the lookup table
used for images.
DEVICE = DEVICE (Read)
Name of the graphics device to be
[Current graphics device
PALETTE = NDF (Read)
The name of the NDF
containing the palette of reserved colours as its data array. The palette must be
two-dimensional, the first dimension being 3, and the second 16. If the second
dimension is greater than 16 only the first 16 colours are used; if it has less than
16 just fill as much of the palette as is possible starting from the first
colour. The palette’s values must lie in the range 0.0–1.0.
palread rustic This loads the palette stored in the NDF called rustic into the
reserved portion of the colour table of the current graphics device.
rustic xwindows This loads the palette stored in the NDF called rustic into
the reserved portion of the colour table of the xwindows device.
The effects of this command will only be immediately apparent when run on X windows
which have 256 colours (or other similar pseudocolour devices). On other devices (for
instance, X windows with more than 256 colours) the effects will only become apparent
when subsequent graphics applications are run.