-
Notifications
You must be signed in to change notification settings - Fork 1
maxcolor
Tristan Hume edited this page Apr 23, 2012
·
3 revisions
#maxcolor
##Syntax maxcolor : int
##Description The maxcolor function is used to determine the maximum color number for the current mode of the screen. The alternate spelling is maxcolour.
##Example This program outputs the maximum color number.
setscreen ("graphics")
�
put "The maximum color number is ", maxcolor
##Details The screen should be in a "screen" or "graphics" mode. If it is not, it will automatically be set to "screen" mode. See setscreen for details.
For IBM PC compatibles in "screen" mode, maxcolor = 15. For the default IBM PC compatible "graphics" mode (CGA), maxcolor = 3.
##See also drawdot.html and palette for examples of the use of . See the color.html procedure.html which is used for setting the currently active color.html.