next up previous 530
Next: PARGET - Obtains the value or values of an application parameter
Up: Specifications of KAPPA applications
Previous: PALREAD - Fills the palette of a colour table from an NDF


PALSAVE - Saves the current palette of a colour table to an NDF

Description:
This application reads the palette  portion of the current graphics device's  colour table and saves it in an NDF . 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. Thus once you have established a palette of colours you prefer, it is straightforward to recover the palette at a future time.

Usage:
palsave palette [device] [title]

Parameters:
DEVICE = DEVICE (Read)
Name of the graphics device to be used. [Current graphics device]
PALETTE = NDF (Write)
The NDF in which the current colour-table reserved pens are to be stored. Thus if you have created non-standard colours for annotation, doodling, colour of axes etc. they may be stored for future use.
TITLE = LITERAL (Read)
Title for the output NDF. ["KAPPA - Palsave"]

Examples:
palsave rustic
This saves the palette of the colour table of the current graphics device into the NDF called rustic.
palsave hitec xwindows title="Hi-tech-look palette"
This saves the palette of the colour table of the xwindows device in the NDF called hitec. The NDF has a title called "Hi-tech-look palette".

Related Applications
KAPPA: PALDEF, PALENTRY, PALREAD.



next up previous 530
Next: PARGET - Obtains the value or values of an application parameter
Up: Specifications of KAPPA applications
Previous: PALREAD - Fills the palette of a colour table from an NDF

KAPPA --- Kernel Application Package
Starlink User Note 95
Malcolm J. Currie & David S. Berry
2012 May 2
E-mail:ussc@star.rl.ac.uk

Copyright © 2012 Science and Technology Facilities Council