next up previous 530
Next: Persistence of Palettes and Colour Tables
Up: Graphics Device Colour Table and Palette
Previous: Running LUTEDIT


Palette

There are four commands for controlling the palette, all beginning PAL. If you inherit the graphics device after a non-KAPPA user or after a device reset, you will probably have to reset the palette. You can do this either by loading the default palette--black, white, the primary then secondary colours, and eight equally spaced grey levels--with the command PALDEF; or load a palette you've created yourself via PALREAD. You modify the palette by changing individual colours within it using PALENTRY. The colour specification can be a named colour , or RGB intensities. For example,

     % palentry 1 Skyblue
     % palentry 14 [1.0,1.0,0.3]

would make palette index 1 sky blue and index 14 a pale yellow. Once you have a palette you like, save it in an NDF with PALSAVE.

Palette entry 0 is the background colour. By choosing a palette colour equal to the background colour, features may be `erased'.


next up previous 530
Next: Persistence of Palettes and Colour Tables
Up: Graphics Device Colour Table and Palette
Previous: Running LUTEDIT

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

Copyright © 2010 Science and Technology Facilities Council