SetFGPen

Sets the foreground pen of a GrafCon.

Synopsis

void SetFGPen (GrafCon *gc,Color c)

Description

This call sets the foreground pen of the specified GrafCon to the specified color. The color value is a coded 15-bit RGB format value, with each 5-bit value acting as an index into the CLUT color registers. After this call, the imagery part of the text (and other graphics elements that use the foreground pen, including line drawing, rectangle and ellipse rendering) is rendered in the new foreground color.

The color values produced are different from the color values produced by MakeCLUTColorEntry().

Arguments

gc
Pointer to a GrafCon structure.
c
Value to be stored as the new foreground pen color.

Implementation

Folio call implemented in Graphics folio V20.

Associated Files

graphics.h, graphics.lib

See Also

MakeRGB15(), SetBGPen()