forlang.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
setcolor
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The setcolor function sets the current color index to <color>. The
     <color> parameter is masked but always within range. The arc,
     ellipse, floodfill, lineto, outgtext, pie, polygon, rectangle, and
     setpixel functions use the current color.
 
     The setcolor function accepts an INTEGER*2 value as an argument. It
     is a color index.
 
     The default color index is the highest numbered color in the
     current palette.
 
     Return Value
 
     This function returns the previous color. If the function fails
     (e.g., if used in text mode), it returns -1.
                                    -♦-