RGBcolor(3G)
RGBcolor - sets the current color in RGB mode
As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.
NAME RGBcolor - sets the current color in RGB mode C SPECIFICATION void RGBcolor(red, green, blue) short 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 RGBcolor sets the red, green, and blue color components of the currently active GL framebuffer, one of normal, popup, overlay, or underlay as specified by drawmode, to the specified values. Alpha, when supported, is set to the maximum value. The current framebuffer must be in RGB mode for the RGBcolor 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 RGBcolor while the current framebuffer is in color map mode. The color components of all framebuffers in RGB mode are set to zero when gconfig is called. SEE ALSO c, cpack, drawmode, gRGBcolor, lmcolor, RGBmode NOTE RGBcolor can also be used to modify the current material while lighting is active (see lmcolor).