Important: The information in this document is obsolete and should not be used for new development.
ForeColor
To change the color of the "ink" used for framing, painting, and filling on computers that support only basic QuickDraw, you can use theForeColor
procedure.
PROCEDURE ForeColor (color: LongInt);
color
- One of eight color values. You can use the following constants to represent these values:
CONST whiteColor =\xDD30; blackColor =\xDD33; yellowColor =\xDD69; magentaColor =\xDD137; redColor =\xDD205; cyanColor =\xDD273; greenColor =\xDD341; blueColor =\xDD409;DESCRIPTION
TheForeColor
procedure sets the foreground color for the current graphics port to the color that you specify in thecolor
parameter. When you draw with thepatCopy
andsrcCopy
transfer modes, for example, black pixels are drawn in the color you specify withForeColor
.SPECIAL CONSIDERATIONS
TheForeColor
procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.SEE ALSO
All nonwhite colors appear as black on black-and-white screens. Before you useForeColor
, you can use theDeviceLoop
procedure, which is described in the chapter "Graphics Devices," to determine the color characteristics of the current screen.In System 7, you may instead use the Color QuickDraw procedure
RGBForeColor
, which is described in the chapter "Color QuickDraw."