Defines a color map ramp for gamma correction.
FORTRAN (libfgl.a)
void gammaramp (Int16 red[256], Int16 green[256], Int16 blue[256])
SUBROUTINE GAMMAR(red, green, blue) INTEGER*2 red(256), green(256), blue(256)
The gammaramp subroutine supplies a level of indirection for all color map and RGB values. It can provide gamma correction, equalize monitors with different color characteristics, or modify the color warmth of the monitor. The default setting has red[i]=green[i]=blue[i]=i.
When the system draws an object in RGB mode, it writes the actual red, green, and blue values to the bitplanes. However, the values displayed on the screen are the indirect values: red, green, blue (where red, green, blue are the arrays last specified by the gammaramp subroutine).
In color map mode, objects written in color i are displayed as red, green, blue.
Notes:
- The operation of this subroutine for the Supergraphics Processor Subsystem is modified. (See "Hardware Considerations".)
- This subroutine cannot be used to add to a display list.
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
The POWERgraphics GXT1000 supports entire-screen gammaramps. Setting the gammaramp on the GXT1000 will affect all windows on the screen, including X11 windows.
/usr/include/gl/gl.h | Contains C language constant and variable type definitions for GL. |
/usr/include/gl/fgl.h | Contains FORTRAN constant and variable type definitions for GL. |
Setting color map mode as the current mode with the cmode subroutine.
Setting the current color in color map mode with the color subroutine.
Changing a color map entry to an RGB value with the mapcolor subroutine.
Setting the current color in RGB mode with the RGBcolor subroutine.
Working in Color Map and RGB Modes.