Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ facolors(3W) — HP-UX 5.50

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fasetinfo(3W)

fagetinfo(3W)

FACOLORS(3W)

Series 300 and 500 Only

NAME

facolors − set the fast alpha font foreground and background colors

SYNOPSIS

#include <fa.h>
int facolors(gfd,foreground,background);
int gfd;
int foreground,background;

DESCRIPTION

gfd is an integer file descriptor for an gopened device interface. 

foreground
is the new foreground color.

background
is the new background color.

DISCUSSION

Sets the foreground and background colors of the activated font for all further fast alpha operations.  These colors are indices into the system color map.  Valid values are:  0 and 1 for monochromatic displays, 0 to 15 for 4-plane color, and 0 to 255 for 16-plane color. The color table index 0 is assumed to be black and the index 1 is assumed to be white.  Note, that if colormode is not set to FACOLOR, the system will ignore any color changes; see fagetinfo and fasetinfo. 

Color values outside the acceptable range (i.e., 0 or 1 for monochrom, 0 to 15 for 4-plane color, and 0 to 255 for 8-plane color) will default to 1 (white). 

HARDWARE DEPENDENCIES

Series 500:
Fast alpha routines do not support HP-15 (2-byte) fonts on Series 500.

SEE ALSO

fasetinfo(3W), fagetinfo(3W). 

DIAGNOSTICS

A value of -1 is returned if gfd is invalid, or a call to fainit was never executed on this gfd. See errno(2) for further information. 

Hewlett-Packard Company  —  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026