LUT LUT
If the argument is "LUT", load the color table defined by an HSV
(HUE, SATURATION and VALUE) or RGB (RED, GREEN and BLUE) color model.
There are six user-writeable SIC variables named:
- LUT%HUE,
- LUT%SATURATION,
- LUT%VALUE, and
- LUT%RED,
- LUT%GREEN
- LUT%BLUE
that contain the HSV and RGB model of the current LUT. These arrays val-
ues can be manipulated using standard SIC mathematic functions to create
new Look-Up Tables (see below). Depending on the value on LUT%MODE, the
model is reloaded from the HSV (LUT%MODE.eq.1) or from the RGB
(LUT%MODE.eq.2) arrays.
A convenient value for the hue array is
LET LUT%HUE[I] = 256*(1-(I/LUT%SIZE))
LET LUT%SATURATION 1
LET LUT%VALUE 1
LUT LUT
which is a "classical" color table from blue to red as used in AIPS for
example. Color contours can be obtained using variations around the fol-
lowing command:
LET LUT%HUE[I] = 16*INT(256*(1-(I/LUT%SIZE))/16)
and so on with the most funny functions you may invent.
A similar behaviour is defined for the BLANKING color, with the six re-
als LUT%BLANK%HUE, LUT%BLANK%SATURATION, LUT%BLANK%VALUE, and
LUT%BLANK%RED, LUT%BLANK%GREEN, LUT%BLANK%BLUE.
CAUTION: the hue is a real number between 0.0 and 360.0