ForeColor
ForeColor
Select color for use in foreground drawing long color ; one of 8 color codes
ForeColor selects the color to be used in foreground drawing on Macs equipped with color output devices. This function is part of the "old model
Quickdraw color support.
color is one of 8 pre- defined color codes. Use one of the named constants
found in Quickdraw.h as follows:
blackColor 33 initial, default foreground color
whiteColor 30
redColor 205
greenColor 341
blueColor 409
cyanColor 273 aqua: bluish- green
magentaColor 137 purple: bluish-red
Notes: This sets the value of the fgColor field of the current GrafPort structure. It is used to draw in color while remaining compatible with pre-MacII
Macs.
On devices that translate color information, all subsequent drawing will be
performed in the specified color. On black-and-white devices, all values
except for whiteColor are interpreted as blackColor.
Note: This function does not affect the colors used to redraw pictures
(DrawPicture) that were created with different colors. Pictures are always drawn in their original colors.
For instance, to fill a rectangle with yellow, use:
Use the BackColor function to specify the background color. The ColorBit function lets you select which "color plane" to draw upon. Don't use an RGBColor as an argument to this function. Especially, be sure you don't use the foreground color of a CGrafPort. To use 32-bit Color