TEXT_COLOR(3G)
NAME
text_color − select the color for subsequent text operations.
SYNOPSIS
C SYNTAX
void text_color_index(fildes,index);
int fildes,index;
void text_color(fildes,red,green,blue);
int fildes;
float red,green,blue;
FORTRAN77 SYNTAX
subroutine text_color_index(fildes,index)
integer*4 fildes,index
subroutine text_color(fildes,red,green,blue)
integer*4 fildes
real red,green,blue
PASCAL SYNTAX
procedure text_color_index(fildes,index:integer);
procedure text_color(fildes:integer;red,green,blue:real);
HP-UX COMPATIBILITY
Level: HP-UX/STANDARD
Origin: ANSI Computer Graphics Interface
DESCRIPTION
INPUT PARAMETERS
fildes
is an integer file descriptor returned by gopen when an I/O path to a graphics device is opened.
index
an integer index into the device color table. The text color is the red, green and blue values specified at this table location.
red, green, blue
are the color values (in the range of 0.0 to 1.0) to be used for subsequent text primitives. Zero (0.0) indicates no color and one (1.0) indicates full color. Monochrome devices use the equation I=0.30*red+0.59*green+0.11*blue to determine the intensity.
DISCUSSION
For text_color_index the subsequent text elements will be drawn with the color that is in the specified color map location. For text_color the the color table is searched for an index which points to the closest color in RGB space to the one specified. Subsequent text elements will be drawn with that index.
Use the procedures inquire_sizes and inquire_color_table to find current color table information.
DEFAULTS
Color table index 1.
SEE ALSO
inquire_sizes(3g),inquire_color_table(3g).
Hewlett-Packard — last mod. May 11, 2021