Next: PALSAVE - Saves the current palette of a colour table to an NDF
Up: Specifications of KAPPA applications
Previous: PALENTRY - Enters a colour into an graphics device's palette
PALREAD
- Fills the palette of a colour table from an NDF
- Description:
- This 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.
- Usage:
-
palread palette [device]
-
- Parameters:
-
DEVICE = DEVICE (Read)
-
Name of the graphics device to be used. [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.
- Examples:
- 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.
- palread rustic xwindows
- This loads the palette stored in the NDF called rustic into
the reserved portion of the colour table of the xwindows
device.
- Notes:
- 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.
-
Related Applications
:
- KAPPA: PALDEF,
PALENTRY,
PALSAVE.
Next: PALSAVE - Saves the current palette of a colour table to an NDF
Up: Specifications of KAPPA applications
Previous: PALENTRY - Enters a colour into an graphics device's palette
KAPPA --- Kernel Application Package
Starlink User Note 95
Malcolm J. Currie & David S. Berry
2013 February 14
E-mail:starlink@jiscmail.ac.uk
Copyright © 2013 Science and Technology Facilities Council