[ Previous | Next | Contents | Glossary | Home | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

RGBcolor Subroutine

Purpose

Sets the current color in RGB mode.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

RGBcolor
(short red, short green, short blue)

FORTRAN Syntax

SUBROUTINE RGBCOL(red, green, blue)
INTEGER*4 red, green, blue

Description

The RGBcolor subroutine sets the current color when the system is in RGB mode. The lower-order 8 bits of the three arguments control the intensity of red, green, and blue colors displayed on the screen. The system writes these numbers directly into the bitplanes whenever it draws a pixel.

Note: This subroutine is available only in RGB mode.

Parameters

red Specifies a value indicating the intensity of the color red to be displayed on the screen.
green Specifies a value indicating the intensity of the color green to be displayed on the screen.
blue Specifies a value indicating the intensity of the color blue to be displayed on the screen.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.

Files

/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.

Related Information

Setting the current color in RGB mode with the c subroutine.

Setting the current color in color map mode with the color subroutine.

Setting the current color as a packed 32-bit integer with the cpack subroutine.

Returning the current RGB value with the gRGBcolor subroutine.

Setting Drawing Attributes, Understanding the Hardware Used by GL,Working in Color Map and RGB Modes.


[ Previous | Next | Contents | Glossary | Home | Search ]