Eight Colors Available in QuickBASIC on Macintosh II (33037)






This article was previously published under Q33037

SUMMARY

The only colors supported by QuickBASIC for Macintosh are the colors that are available with the Macintosh QuickDraw.

The colors and their respective values are as follows:

Black = 33
White = 30
Red = 205
Green = 341
Blue = 409
Cyan = 273
Magenta = 137
Yellow = 69

These color numbers are used in the following QuickBASIC Toolbox Library routines:
   ForeColor color%
   BackColor color%
				

MORE INFORMATION

The windows that BASIC opens can only contain the plain QuickDraw 8 colors. In technical terms, BASIC's windows are based on GrafPorts, not CGrafPorts. This guarantees that the BASIC program will run on any Macintosh, whether it has color QuickDraw or not.

Modification Type: Minor Last Reviewed: 1/9/2003
Keywords: KB33037