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:

Related Applications

KAPPA: PALDEF, PALENTRY, PALSAVE.