RGBcol(3G)RGBcol(3G)NAME
RGBcol - sets the current color in RGB mode
FORTRAN 77 SPECIFICATION
subroutine RGBcol(red, green, blue)
integer*4 red, green, blue
PARAMETERS
red expects the value indicating the intensity of the red component.
green expects the value indicating the intensity of the green
component.
blue expects the value indicating the intensity of the blue component.
DESCRIPTION
RGBcol sets the red, green, and blue color components of the currently
active GL framebuffer, one of normal, popup, overlay, or underlay as
specified by drawmo, to the specified values. Alpha, when supported, is
set to the maximum value. The current framebuffer must be in RGB mode
for the RGBcol command to be applicable. Most drawing commands copy the
current RGBA color components into the color bitplanes of the current
framebuffer. Color components are retained in each draw mode, so when a
draw mode is re-entered, red, green, blue, and alpha are reset to the
last values specified in that draw mode.
Color component values range from 0, specifying no intensity, through
255, specifying maximum intensity. Values that exceed 255 are clamped to
it. Values less than 0 are not clamped, and therefore result in
unpredictable operation.
It is an error to call RGBcol while the current framebuffer is in color
map mode.
The color components of all framebuffers in RGB mode are set to zero when
gconfi is called.
SEE ALSO
c, cpack, drawmo, gRGBco, lmcolo, RGBmod
NOTE
RGBcol can also be used to modify the current material while lighting is
active (see lmcolo).
Page 1